mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 04:04:59 +00:00
enhance: get count of changed file (without untracked) directly (#316)
This commit is contained in:
parent
8c16ded6bd
commit
3bcf4e128e
5 changed files with 34 additions and 8 deletions
|
@ -30,9 +30,9 @@ namespace SourceGit.ViewModels
|
|||
|
||||
return Task.Run(() =>
|
||||
{
|
||||
var changes = new Commands.QueryLocalChanges(_repo.FullPath, false).Result();
|
||||
var changes = new Commands.CountLocalChangesWithoutUntracked(_repo.FullPath).Result();
|
||||
var needPopStash = false;
|
||||
if (changes.Count > 0)
|
||||
if (changes > 0)
|
||||
{
|
||||
if (PreAction == Models.DealWithLocalChanges.StashAndReaply)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue