aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--b4/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index 3b8b9f3..fd70858 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -1967,8 +1967,10 @@ def git_get_command_lines(gitdir: Optional[str], args: list) -> List[str]:
return lines
-def git_get_repo_status(gitdir: Optional[str] = None) -> List[str]:
+def git_get_repo_status(gitdir: Optional[str] = None, untracked: bool = False) -> List[str]:
args = ['status', '--porcelain=v1']
+ if not untracked:
+ args.append('--untracked-files=no')
return git_get_command_lines(gitdir, args)