From c5e3b97312218589d5f29aca495e6f9e72602b68 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 12 Jan 2020 20:01:05 -0800 Subject: [PATCH] Add argument --untracked-files=all for better file count. Without it, entire directories are counted as a single item. I prefer to have the individual files counted. --- gitcheckup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitcheckup.py b/gitcheckup.py index 8ff2538..c32bee9 100644 --- a/gitcheckup.py +++ b/gitcheckup.py @@ -35,7 +35,7 @@ DIRECTORIES = [ def checkup_committed(directory): os.chdir(directory) - command = [GIT, 'status', '--short'] + command = [GIT, 'status', '--short', '--untracked-files=all'] output = subprocess.check_output(command, stderr=subprocess.STDOUT) added = 0