project: make diff tools synchronous
project: make diff tools synchronous

These are the only users in the tree that process the output as it's
produced.  All others capture all the output first and then process
the results.  However, these functions still don't fully return until
it's finished processing, and these funcs are in turn used in other
synchronous code paths.  So it's unclear whether anyone will notice
that it's slightly slower or less interactive.  Let's try it out and
see if users report issues.

This will allow us to simplify our custom GitCommand code and move it
over to Python's subprocess.run, and will help fix interleaved output
when running multiple commands in parallel (e.g. `repo diff -j8`).

Change-Id: Ida16fafc47119d30a629a8783babeba890515de0
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/297144
Tested-by: Mike Frysinger <8f3f75c74bd5184edcfa6534cab3c13a00a2f794@google.com>
Reviewed-by: Jonathan Nieder <96e93edf89a1b75e35c5d08e01778cfc4fff73d9@google.com>

couchbasedeps/git-repo,couchbasedeps/git-repo,GerritCodeReview/git-repo,lewixliu/git-repo,lewixliu/git-repo,GerritCodeReview/git-repo