Skip to content
Snippets Groups Projects
Commit b779dd5e authored by Junio C Hamano's avatar Junio C Hamano
Browse files

Make sample pre-commit hook output Emacs friendly.


Use the common error message format, "filename:lineno: body";
this way, problematic lines can be jumped to from the Emacs
compilation buffer by C-x `.

Signed-off-by: default avatarJunio C Hamano <junkio@cox.net>
parent 51890a64
Branches
Tags
No related merge requests found
......@@ -28,7 +28,8 @@ perl -e '
print "* In $filename\n";
$reported_filename = $filename;
}
print "* $why (line $lineno)\n$line\n";
print "* $why (line $lineno)\n";
print "$filename:$lineno:$line\n";
}
open $fh, "-|", qw(git-diff-cache -p -M --cached HEAD);
while (<$fh>) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment