From 6ed3ea832ff60a7cde93b128f21200824364d3e8 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Thu, 12 Feb 2009 15:37:38 +0100 Subject: [GIT] speeds up increadibly the git-status ! --- 01_Functions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/01_Functions.zsh b/01_Functions.zsh index e9d67e6..7c8ac0b 100644 --- a/01_Functions.zsh +++ b/01_Functions.zsh @@ -104,7 +104,7 @@ get_git_status () return fi - if [ "$(git-diff --cached 2>&- | grep '^diff ')" != "" ] ; then + if [ "$(git-diff --cached 2>&- | grep '^diff ' | head -n1 )" != "" ] ; then cached="yes" fi if [ "$(git-ls-files -m 2>&-)" != "" ] ; then -- cgit v1.2.3