mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 06:27:19 +01:00
More efficient method of determining a dirty repo index
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user