summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2008-02-29 18:01:04 +0100
committerHugues Hiegel <hugues@hiegel.fr>2008-03-07 14:15:21 +0100
commited0976f7e48e5c7006619613172c824761a2ef6f (patch)
tree0038feab797a869650ea13ec1d91c9ecbe53b51c
parentfbf6922215d632c6a01fc6d954f9fd56d353d13e (diff)
Bug avec lsdiff qui ne prend pas en compte les ajouts/suppressions sous GIT
-rw-r--r--01_Functions.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh
index d991013..ba88af2 100644
--- a/01_Functions.zsh
+++ b/01_Functions.zsh
@@ -52,7 +52,7 @@ check_git_status ()
then
#preprint "Check git status..."
#_git_status=$(git-status 2>&- | grep -E '^# ([[:alpha:]]+ )+(but not|to be)( [[:alpha:]]+)+:$')
- if [ "$(git-diff --cached | lsdiff)" != "" ] ; then
+ if [ "$(git-diff --cached | grep '^diff ')" != "" ] ; then
COLOR_GIT=$COLOR_TO_BE_COMMITED
elif [ "$(git-ls-files -m)" != "" ] ; then
COLOR_GIT=$COLOR_NOT_UP_TO_DATE