diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2009-02-12 15:37:38 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2009-02-12 15:37:38 +0100 |
commit | 6ed3ea832ff60a7cde93b128f21200824364d3e8 (patch) | |
tree | 6615af01cce7b4cdcf3a7b6dc01d4ae62fefaad1 | |
parent | d45d35cc816001254856d0e9113a2d3341bcb5fd (diff) |
[GIT] speeds up increadibly the git-status !
-rw-r--r-- | 01_Functions.zsh | 2 |
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 |