mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-30 08:34:59 +00:00
optimize<WorkingCopy>: do NOT show unmerged changes in staged
This commit is contained in:
parent
08f279a521
commit
6613566afb
3 changed files with 5 additions and 9 deletions
|
@ -28,7 +28,10 @@ namespace SourceGit.Views.Widgets {
|
|||
List<Models.Change> stagedChanges = new List<Models.Change>();
|
||||
|
||||
foreach (var c in changes) {
|
||||
if (c.IsAddedToIndex) {
|
||||
if (c.Index == Models.Change.Status.Modified
|
||||
|| c.Index == Models.Change.Status.Added
|
||||
|| c.Index == Models.Change.Status.Deleted
|
||||
|| c.Index == Models.Change.Status.Renamed) {
|
||||
stagedChanges.Add(c);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue