mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 20:54:59 +00:00
enhance: ignore untracked files when calculate local changes in checkout/create branch/pull (#316)
This commit is contained in:
parent
71c2ad989b
commit
8c16ded6bd
5 changed files with 11 additions and 14 deletions
|
@ -10,11 +10,6 @@ namespace SourceGit.ViewModels
|
|||
private set;
|
||||
}
|
||||
|
||||
public bool HasLocalChanges
|
||||
{
|
||||
get => _repo.WorkingCopyChangesCount > 0;
|
||||
}
|
||||
|
||||
public bool AutoStash
|
||||
{
|
||||
get => _autoStash;
|
||||
|
@ -35,8 +30,9 @@ namespace SourceGit.ViewModels
|
|||
|
||||
return Task.Run(() =>
|
||||
{
|
||||
var changes = new Commands.QueryLocalChanges(_repo.FullPath, false).Result();
|
||||
var needPopStash = false;
|
||||
if (HasLocalChanges)
|
||||
if (changes.Count > 0)
|
||||
{
|
||||
if (AutoStash)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue