From 03a60e716fd10ebf8c8c984e8a337e6581536872 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Sun, 8 Oct 2017 18:12:48 -0400 Subject: [PATCH] More efficient method of determining a dirty repo index --- TGServerService/Repository.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/TGServerService/Repository.cs b/TGServerService/Repository.cs index 5282981ed3..2b6bf6a3b5 100644 --- a/TGServerService/Repository.cs +++ b/TGServerService/Repository.cs @@ -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