summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 843142a)
raw | patch | inline | side by side (parent: 843142a)
author | James Bowes <jbowes@dangerouslyinc.com> | |
Sat, 5 May 2007 20:48:54 +0000 (16:48 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 10 May 2007 22:25:01 +0000 (15:25 -0700) |
The rebase and merge commands used diff-tree to display the summary stats of
what files had changed from the operation. diff-tree does not read the
diff ui configuration options, so the diff.color setting was not used.
Have rebase and merge call diff rather than diff-tree, which does read the
diff ui options.
Signed-off-by: James Bowes <jbowes@dangerouslyinc.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
what files had changed from the operation. diff-tree does not read the
diff ui configuration options, so the diff.color setting was not used.
Have rebase and merge call diff rather than diff-tree, which does read the
diff ui options.
Signed-off-by: James Bowes <jbowes@dangerouslyinc.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-merge.sh | patch | blob | history | |
git-rebase.sh | patch | blob | history |
diff --git a/git-merge.sh b/git-merge.sh
index 7ebbce4bdbaf243a7a5612c024216b8ccf8eae44..351676f6d4a39c1ac682296781f4f5c8d1a3053d 100755 (executable)
--- a/git-merge.sh
+++ b/git-merge.sh
?*)
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
;;
diff --git a/git-rebase.sh b/git-rebase.sh
index 2dc2c4fe9b4d4a7ff10398938efbed28fa6f43f7..61770b5a2837b9d69ffb1db455f39ffdb3c8ea00 100755 (executable)
--- a/git-rebase.sh
+++ b/git-rebase.sh
if test -n "$verbose"
then
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
# Rewind the head to "$onto"; this saves our current head in ORIG_HEAD.