chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25575e4
)
git-debpush: check_treesame: Show diffstat when there is a diff
author
Sean Whitton
<spwhitton@spwhitton.name>
Mon, 22 Jul 2019 08:04:15 +0000
(09:04 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 22 Jul 2019 15:09:15 +0000
(16:09 +0100)
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
git-debpush
patch
|
blob
|
history
diff --git
a/git-debpush
b/git-debpush
index 31537511f8c354b57e5241a94014bf5ac53f8472..bd0357b5dc3a301979297023efc67dce5fb727e3 100755
(executable)
--- a/
git-debpush
+++ b/
git-debpush
@@
-109,6
+109,11
@@
check_treesame () {
git_diff_rc=$?
set -e
+ # show the user what the difference was
+ if [ $git_diff_rc = 1 ]; then
+ git diff --compact-summary "$first".."$second" -- . "$@"
+ fi
+
if [ $git_diff_rc -le 1 ]; then
return $git_diff_rc
else