summaryrefslogtreecommitdiff
path: root/01_Functions.zsh
diff options
context:
space:
mode:
Diffstat (limited to '01_Functions.zsh')
-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