Skip to content

Commit c66cdfb

Browse files
committed
Merge pull request #114 from scrawl/master
Show all untracked files in the repository instead of just from ./ on
2 parents 724d3dc + 4083a4b commit c66cdfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitstatus.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ staged_files=`git diff --staged --name-status`
3838
num_changed=$(( `all_lines "$gitstatus"` - `count_lines "$gitstatus" U` ))
3939
num_conflicts=`count_lines "$staged_files" U`
4040
num_staged=$(( `all_lines "$staged_files"` - num_conflicts ))
41-
num_untracked=`git ls-files --others --exclude-standard | wc -l`
41+
num_untracked=`git ls-files --others --exclude-standard $(git rev-parse --show-cdup) | wc -l`
4242
if [[ "$__GIT_PROMPT_IGNORE_STASH" = "1" ]]; then
4343
num_stashed=0
4444
else

0 commit comments

Comments
 (0)