More efficient method of determining a dirty repo index

This commit is contained in:
Jordan Brown
2017-10-08 18:12:48 -04:00
committed by GitHub
parent c418a2ad15
commit 03a60e716f
+1 -4
View File
@@ -993,10 +993,7 @@ namespace TGServerService
foreach(var I in Config.ChangelogPathsToStage)
Commands.Stage(Repo, I);
var status = Repo.RetrieveStatus();
var sum = status.Added.Count() + status.Removed.Count() + status.Modified.Count();
if (sum == 0) //nothing to commit
if (Repo.RetrieveStatus().Staged.Count() == 0) //nothing to commit
return null;
// Create the committer's signature and commit