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>
diff --git a/project.py b/project.py index 783aead..2d75d34 100644 --- a/project.py +++ b/project.py
@@ -986,7 +986,7 @@ return matched - def UncommitedFiles(self, get_all=True): + def UncommittedFiles(self, get_all: bool = True) -> List[str]: """Returns a list of strings, uncommitted files in the git tree. Args: @@ -1023,9 +1023,9 @@ """Returns a list of strings, untracked files in the git tree.""" return self.work_git.LsOthers() - def HasChanges(self): + def HasChanges(self) -> bool: """Returns true if there are uncommitted changes.""" - return bool(self.UncommitedFiles(get_all=False)) + return bool(self.UncommittedFiles(get_all=False)) def PrintWorkTreeStatus(self, output_redir=None, quiet=False, local=False): """Prints the status of the repository to stdout.