Skip to content

Commit c409ca8

Browse files
author
Andrew
committed
fixed git diff from saving temp data in log
1 parent e47b069 commit c409ca8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

GitItGUI.Core/ChangesManager.cs

+3
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ public static object GetQuickViewData(FileState fileState)
104104
if (fileState.IsState(FileStates.ModifiedInWorkdir) || fileState.IsState(FileStates.ModifiedInIndex))
105105
{
106106
string diff;
107+
Debug.pauseGitCommanderStdWrites = true;
107108
if (!Repository.GetDiff(fileState.filename, out diff)) throw new Exception(Repository.lastError);
109+
Debug.pauseGitCommanderStdWrites = false;
108110

109111
// remove meta data stage 1
110112
var match = Regex.Match(diff, @"@@.*?(@@).*?\n(.*)", RegexOptions.Singleline);
@@ -145,6 +147,7 @@ public static object GetQuickViewData(FileState fileState)
145147
}
146148
catch (Exception e)
147149
{
150+
Debug.pauseGitCommanderStdWrites = false;
148151
Debug.LogError("Failed to refresh quick view: " + e.Message, true);
149152
return null;
150153
}

0 commit comments

Comments
 (0)