Browse Source

Merge branch 'jb/statcolor'

* jb/statcolor:
  Add colour support in rebase and merge tree diff stats output.
maint
Junio C Hamano 18 years ago
parent
commit
5610c6e381
  1. 3
      git-merge.sh
  2. 3
      git-rebase.sh

3
git-merge.sh

@ -90,7 +90,8 @@ finish () {
?*) ?*)
case "$no_summary" in case "$no_summary" in
'') '')
git-diff-tree --stat --summary -M "$head" "$1" # We want color (if set), but no pager
GIT_PAGER='' git-diff --stat --summary -M "$head" "$1"
;; ;;
esac esac
;; ;;

3
git-rebase.sh

@ -307,7 +307,8 @@ fi
if test -n "$verbose" if test -n "$verbose"
then then
echo "Changes from $mb to $onto:" echo "Changes from $mb to $onto:"
git-diff-tree --stat --summary "$mb" "$onto" # We want color (if set), but no pager
GIT_PAGER='' git-diff --stat --summary "$mb" "$onto"
fi fi


# Rewind the head to "$onto"; this saves our current head in ORIG_HEAD. # Rewind the head to "$onto"; this saves our current head in ORIG_HEAD.

Loading…
Cancel
Save