From: Sean Whitton Date: Mon, 22 Jul 2019 08:04:15 +0000 (+0100) Subject: git-debpush: check_treesame: Show diffstat when there is a diff X-Git-Tag: archive/debian/9.5~11 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f6f6419eca67882b47632875d2ee7163f4d005c7;p=dgit.git git-debpush: check_treesame: Show diffstat when there is a diff Signed-off-by: Sean Whitton --- diff --git a/git-debpush b/git-debpush index 31537511..bd0357b5 100755 --- 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