Prechádzať zdrojové kódy

Mention what file has changed

rl1987 5 rokov pred
rodič
commit
7b5f31f2d6
1 zmenil súbory, kde vykonal 5 pridanie a 1 odobranie
  1. 5 1
      scripts/maint/post-merge.git-hook

+ 5 - 1
scripts/maint/post-merge.git-hook

@@ -28,7 +28,11 @@ check_for_diffs() {
 check_for_script_update() {
         fullpath="$git_toplevel/scripts/maint/$1"
 
-        git diff ORIG_HEAD HEAD --exit-code -- "$fullpath"
+        if ! git diff ORIG_HEAD HEAD --exit-code -- "$fullpath" >/dev/null
+        then
+                echo "ATTENTION: $1 has changed:"
+                git diff ORIG_HEAD HEAD -- "$fullpath"
+        fi
 }
 
 check_for_diffs "pre-push"