Browse Source

start working on a postpush hook

Oz N Tiram 10 years ago
parent
commit
ed0d6e1872
1 changed files with 7 additions and 0 deletions
  1. 7 0
      hooks/postpush

+ 7 - 0
hooks/postpush

@@ -0,0 +1,7 @@
+# List changed in the last commit
+
+git diff-tree --no-commit-id --name-only -r $(git rev-list HEAD^..HEAD)
+
+# Python version
+
+[patch.new_file_path for patch in repo.diff('HEAD', 'HEAD~1'))]