SparkleLib: Use rev-parse HEAD to determine latest commit

While `git log -1 --format=%H` does show the same data, it needs to
start up the revision walking machinery just to show the latest
commit's hash. `git rev-parse HEAD` tells us this commit's hash
without doing all the extra work.
This commit is contained in:
Carlos Martín Nieto 2012-06-07 15:29:27 +02:00
parent 9d237ac273
commit a7e24dc3aa

View file

@ -142,7 +142,7 @@ namespace SparkleLib.Git {
if (File.Exists (rebase_apply_file))
File.Delete (rebase_apply_file);
SparkleGit git = new SparkleGit (LocalPath, "log -1 --format=%H");
SparkleGit git = new SparkleGit (LocalPath, "rev-parse HEAD");
git.Start ();
git.WaitForExit ();