chiark / gitweb /
git-debpush: check_treesame: Also pass --quiet to 'git diff'
authorSean Whitton <spwhitton@spwhitton.name>
Sun, 21 Jul 2019 10:35:38 +0000 (11:35 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 22 Jul 2019 15:09:15 +0000 (16:09 +0100)
Otherwise, when using git-debpush in a terminal, the user will get a
pile of unwanted diff output each time check_treesame is called.

Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
git-debpush

index beb24fbf2ba7b421ede799540d445bd40adb6ce9..31537511f8c354b57e5241a94014bf5ac53f8472 100755 (executable)
@@ -105,7 +105,7 @@ check_treesame () {
     shift 2
 
     set +e
-    git diff --exit-code "$first".."$second" -- . "$@"
+    git diff --quiet --exit-code "$first".."$second" -- . "$@"
     git_diff_rc=$?
     set -e