Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Request: Count individual files in untracked directory (--untracked-files) #53
Could a similar option be added to
mkdir /tmp/foobar cd /tmp/foobar/ git init # Initialized empty Git repository in /tmp/foobar/.git/ source ~/gitstatus/gitstatus.plugin.sh gitstatus_start mkdir foo touch foo/bar touch foo/baz git status --untracked-files # On branch master # # No commits yet # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # foo/bar # foo/baz # # nothing added to commit but untracked files present (use "git add" to track) gitstatus_query echo $VCS_STATUS_NUM_UNTRACKED 1 # ← Would be "2".
By the way, gitstatus used to work just like you are asking. This really sucked because sometimes you run
It would be just fine
This is not a problem for me, I always add these files to
Thanks, I forgot to add this flag in my example.