Skip to content

Commit

Permalink
Merge pull request #737 from smancill/standup-ensure-colors
Browse files Browse the repository at this point in the history
git-standup: ensure color usage
  • Loading branch information
hemanth authored Nov 21, 2018
2 parents eb27b24 + 13fa83b commit a815bb0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/git-standup
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
Expand All @@ -52,6 +53,7 @@ else
BOLD=""
UNDERLINE=""
NORMAL=""
COLOR=never
fi

# Only enable exit-on-error after the non-critical colorization stuff,
Expand Down Expand Up @@ -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'"

Expand Down

0 comments on commit a815bb0

Please sign in to comment.