From f6f6419eca67882b47632875d2ee7163f4d005c7 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 22 Jul 2019 09:04:15 +0100 Subject: git-debpush: check_treesame: Show diffstat when there is a diff Signed-off-by: Sean Whitton --- git-debpush | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/git-debpush b/git-debpush index 3153751..bd0357b 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 -- cgit v1.2.3