AzurePoolCrossDbGenerator/Generators.cs
/// <summary>
/// Runs git with the specified params in the current working dir and returns the output
/// </summary>
/// <param name="gitParams"></param>
/// <returns></returns>
Runs git with the specified params in the current working dir and returns the output
Runs git with the specified params in the current working dir and returns the output
static string GetGitOutput(string gitParams)
        {
            var cmdProc = new System.Diagnostics.Process();
            cmdProc.StartInfo.FileName = "git";
            cmdProc.StartInfo.Arguments = gitParams;
            cmdProc.StartInfo.UseShellExecute = false;
            cmdProc.StartInfo.RedirectStandardOutput = true;
            cmdProc.Start();
            string gitOutput = cmdProc.StandardOutput.ReadToEnd();
            cmdProc.WaitForExit();
            cmdProc.Dispose();
            return gitOutput;
        }
static string GetGitOutput ( string gitParams ) { var cmdProc = new System . Diagnostics . Process ( ) ; cmdProc . StartInfo . FileName = " " ; cmdProc . StartInfo . Arguments = gitParams ; cmdProc . StartInfo . UseShellExecute = false ; cmdProc . StartInfo . RedirectStandardOutput = true ; cmdProc . Start ( ) ; string gitOutput = cmdProc . StandardOutput . ReadToEnd ( ) ; cmdProc . WaitForExit ( ) ; cmdProc . Dispose ( ) ; return gitOutput ; }
Runs git with the specified params in the current working dir and returns the output
Runs git with the specified params in the current working dir and returns the output
None
gitParams
string
None