Skip to content

Commit

Permalink
AutoCompleteWord git-status must not lock git
Browse files Browse the repository at this point in the history
Part of #6076
  • Loading branch information
gerhardol committed Jan 14, 2019
1 parent 17a779e commit 043c96c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion GitUI/AutoCompletion/CommitAutoCompleteProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ public async Task<IEnumerable<AutoCompleteWord>> GetAutoCompleteWordsAsync(Cance

var autoCompleteWords = new HashSet<string>();

foreach (var file in _module.GetAllChangedFiles())
var cmd = GitCommandHelpers.GetAllChangedFilesCmd(true, UntrackedFilesMode.Default, noLocks: true);
var output = _module.RunGitCmd(cmd);
var changedFiles = GitCommandHelpers.GetStatusChangedFilesFromString(_module, output);
foreach (var file in changedFiles)
{
cancellationToken.ThrowIfCancellationRequested();

Expand Down

0 comments on commit 043c96c

Please sign in to comment.