Merge pull request #737 from smancill/standup-ensure-colors

git-standup: ensure color usage
This commit is contained in:
hemanth.hm 2018-11-21 10:12:37 +05:30 committed by GitHub
commit a815bb0fbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,6 +43,7 @@ if [[ -t 1 ]] && [[ -n "$ncolors" ]] && [[ "$ncolors" -ge 8 ]] ; then
BOLD=$(tput bold)
UNDERLINE=$(tput smul)
NORMAL=$(tput sgr0)
COLOR=always
else
RED=""
GREEN=""
@ -52,6 +53,7 @@ else
BOLD=""
UNDERLINE=""
NORMAL=""
COLOR=never
fi
# Only enable exit-on-error after the non-critical colorization stuff,
@ -153,6 +155,7 @@ GIT_LOG_COMMAND="git --no-pager log \
--author=\"$AUTHOR\"
--abbrev-commit
--oneline
--color=$COLOR
--pretty=format:'$GIT_PRETTY_FORMAT'
--date='$GIT_DATE_FORMAT'"