summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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