From ed0976f7e48e5c7006619613172c824761a2ef6f Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 29 Feb 2008 18:01:04 +0100 Subject: Bug avec lsdiff qui ne prend pas en compte les ajouts/suppressions sous GIT --- 01_Functions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3