Make default pre-commit hook less noisy
[git/git.git] / templates / hooks--pre-commit
index 7092bae..b25dce6 100644 (file)
@@ -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", $_);
            }
        }