]> asedeno.scripts.mit.edu Git - git.git/blobdiff - templates/hooks--pre-commit
Merge git://git.kernel.org/pub/scm/gitk/gitk
[git.git] / templates / hooks--pre-commit
index a19279b3e41653b519b8c3b266bc7845f3648c4b..b25dce6bbfa5e52108459b9a89b16def6963aec0 100644 (file)
@@ -13,7 +13,7 @@
 
 if git-rev-parse --verify HEAD 2>/dev/null
 then
-       git-diff-index -p -M --cached HEAD
+       git-diff-index -p -M --cached HEAD --
 else
        # NEEDSWORK: we should produce a diff with an empty tree here
        # if we want to do the same verification for the initial import.
@@ -61,7 +61,7 @@ perl -e '
            if (/^\s* \t/) {
                bad_line("indent SP followed by a TAB", $_);
            }
-           if (/^(?:[<>=]){7}/) {
+           if (/^([<>])\1{6} |^={7}$/) {
                bad_line("unresolved merge conflict", $_);
            }
        }