I developed a C# application which starts the git(.exe) process and asynchronously reads the output lines of the process. Executing a git pull, results in multiple output lines.
E.g.
Receiving objects: 9% (10/109)
Receiving objects: 10% (11/109)
Receiving objects: 11% (12/109)
Receiving objects: 12% (14/109)
Is it possible to (automatically) determine the end of the result of a Git command, so I can stop the asynchronous read operations and the Git process? Does a Git result contains (a) special character(s) or keyword which represent the end of the result?
Most examples on the web use a console application where the user must manually quit the console to end the git process as well.
Thank you in advance!
Edit 1:
Code example
gitProcess.Start();
gitProcess.BeginOutputReadLine();
gitProcess.BeginErrorReadLine();
gitProcess.WaitForExit(200);
gitProcess.Close();