summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rw-r--r--project.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/project.py b/project.py
index 48cf08c6..8274f022 100644
--- a/project.py
+++ b/project.py
@@ -650,7 +650,7 @@ class Project(object):
650 return True 650 return True
651 if self.work_git.DiffZ('diff-files'): 651 if self.work_git.DiffZ('diff-files'):
652 return True 652 return True
653 if consider_untracked and self.work_git.LsOthers(): 653 if consider_untracked and self.UntrackedFiles():
654 return True 654 return True
655 return False 655 return False
656 656
@@ -779,12 +779,16 @@ class Project(object):
779 if not get_all: 779 if not get_all:
780 return details 780 return details
781 781
782 changes = self.work_git.LsOthers() 782 changes = self.UntrackedFiles()
783 if changes: 783 if changes:
784 details.extend(changes) 784 details.extend(changes)
785 785
786 return details 786 return details
787 787
788 def UntrackedFiles(self):
789 """Returns a list of strings, untracked files in the git tree."""
790 return self.work_git.LsOthers()
791
788 def HasChanges(self): 792 def HasChanges(self):
789 """Returns true if there are uncommitted changes. 793 """Returns true if there are uncommitted changes.
790 """ 794 """