浏览代码

start working on a postpush hook

Oz N Tiram 10 年之前
父节点
当前提交
ed0d6e1872
共有 1 个文件被更改,包括 7 次插入0 次删除
  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'))]