summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
authorGavin Mak <gavinmak@google.com>2026-09-17 22:07:03 +0000
committergerrit-scoped@luci-project-accounts.iam.gserviceaccount.com <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2026-09-17 17:21:32 -0700
commitc86ddc1628981a96391700c041f8493e145aa4c8 (patch)
treea5dfc50a00b243ab76c366e90677c0612c1b4d6a /project.py
parentc638b54e19f4765904613f729b2c9059fc4799d2 (diff)
downloadgit-repo-c86ddc1628981a96391700c041f8493e145aa4c8.tar.gz
project: rename UncommitedFiles to UncommittedFiles
Fix typo in UncommitedFiles across project.py and HasChanges. Bug: 553599402 Change-Id: I2b9b606b4c9a47fd998e50cca976545fcd783771 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/632881 Tested-by: Gavin Mak <gavinmak@google.com> Reviewed-by: Brian Gan <brgan@google.com> Commit-Queue: Gavin Mak <gavinmak@google.com>
Diffstat (limited to 'project.py')
-rw-r--r--project.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/project.py b/project.py
index 783aead06..2d75d3493 100644
--- a/project.py
+++ b/project.py
@@ -986,7 +986,7 @@ class Project:
986 986
987 return matched 987 return matched
988 988
989 def UncommitedFiles(self, get_all=True): 989 def UncommittedFiles(self, get_all: bool = True) -> List[str]:
990 """Returns a list of strings, uncommitted files in the git tree. 990 """Returns a list of strings, uncommitted files in the git tree.
991 991
992 Args: 992 Args:
@@ -1023,9 +1023,9 @@ class Project:
1023 """Returns a list of strings, untracked files in the git tree.""" 1023 """Returns a list of strings, untracked files in the git tree."""
1024 return self.work_git.LsOthers() 1024 return self.work_git.LsOthers()
1025 1025
1026 def HasChanges(self): 1026 def HasChanges(self) -> bool:
1027 """Returns true if there are uncommitted changes.""" 1027 """Returns true if there are uncommitted changes."""
1028 return bool(self.UncommitedFiles(get_all=False)) 1028 return bool(self.UncommittedFiles(get_all=False))
1029 1029
1030 def PrintWorkTreeStatus(self, output_redir=None, quiet=False, local=False): 1030 def PrintWorkTreeStatus(self, output_redir=None, quiet=False, local=False):
1031 """Prints the status of the repository to stdout. 1031 """Prints the status of the repository to stdout.