From f993391f2fef45749cc74a01a6e8589e808571a6 Mon Sep 17 00:00:00 2001 From: Martin Gondermann Date: Sat, 15 Nov 2014 07:59:44 +0100 Subject: [PATCH] Revert ".git was being touched continuously" This reverts commit 7855e77e40d626c86d6ae7024d1ffc98c288f0e6. --- gitstatus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitstatus.sh b/gitstatus.sh index c5716e83..601e4cf1 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_INDEX_FILE=/tmp/bash_git_prompt_index git status -s -uall | grep -c "^??"` +num_untracked=`git status -s -uall | grep -c "^??"` if [[ -n "$GIT_PROMPT_IGNORE_STASH" ]]; then num_stashed=0 else