summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2009-02-12 15:37:38 +0100
committerHugues Hiegel <hugues@hiegel.fr>2009-02-12 15:37:38 +0100
commit6ed3ea832ff60a7cde93b128f21200824364d3e8 (patch)
tree6615af01cce7b4cdcf3a7b6dc01d4ae62fefaad1
parentd45d35cc816001254856d0e9113a2d3341bcb5fd (diff)
[GIT] speeds up increadibly the git-status !
-rw-r--r--01_Functions.zsh2
1 files changed, 1 insertions, 1 deletions
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