From 4083a4b8d7ce83d110e608b63b460da26cfd5c29 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sat, 24 Jan 2015 23:12:50 +0100 Subject: [PATCH] Show all untracked files in the repository instead of just from ./ on. --- gitstatus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitstatus.sh b/gitstatus.sh index 267db45..68d1a08 100755 --- a/gitstatus.sh +++ b/gitstatus.sh @@ -38,7 +38,7 @@ staged_files=`git diff --staged --name-status` num_changed=$(( `all_lines "$gitstatus"` - `count_lines "$gitstatus" U` )) num_conflicts=`count_lines "$staged_files" U` num_staged=$(( `all_lines "$staged_files"` - num_conflicts )) -num_untracked=`git ls-files --others --exclude-standard | wc -l` +num_untracked=`git ls-files --others --exclude-standard $(git rev-parse --show-cdup) | wc -l` if [[ "$__GIT_PROMPT_IGNORE_STASH" = "1" ]]; then num_stashed=0 else