From da940677ee31e89ea48228cf92fef1049e2965dc Mon Sep 17 00:00:00 2001 From: Anthony Gelibert Date: Tue, 24 Sep 2013 22:37:28 +0200 Subject: [PATCH] Correct a bug in git parsing. --- liquidprompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index ccec9c5..5f35af6 100755 --- a/liquidprompt +++ b/liquidprompt @@ -768,7 +768,7 @@ _lp_git_branch_color() fi local shortstat - shortstat="$(LANG=C \git diff --shortstat 2>/dev/null)" + shortstat="$(LANG=C \git diff --shortstat HEAD 2>/dev/null)" if [[ -n "$shortstat" ]] ; then local has_lines #has_lines=$(\git diff --numstat 2>/dev/null | awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d/-%d\n", plus, minus)}')