Commit bdaf446
committed
.tools: Run 'git show --check ...' on each commit
Watch for accidentally-injected trailing whitespace. The stdout for
failing checks is a bit hard to read:
not ok 2 - git show --check 2652b57a368e8fdd6745f2354f25c56e57326b16
---
message: "commit 2652b57a368e8fdd6745f2354f25c56e57326b16\nAuthor: W. Trevor King
<wking@tremily.us>\nDate: Sat Sep 12 08:32:15 2015 -0700\n\n .tools: Run 'git
show --check ...' on each commit\n \n Watch for accidentally-injected trailing
whitespace. The stdout for\n failing checks is a bit hard to read:\n \n not
ok 2 - exit status 2\n ---\n message: \"commit 09748ebfd739dbcee35a585a75f896a74aa1c2f0\\nAuthor:
W. Trevor King\n <wking@tremily.us>\\nDate: Sat Sep 12 08:32:15 2015 -0700\\n\\n
\ .tools: Run 'git\n show --check ...' on each commit\\n \\n Watch
for accidentally-injected trailing\n whitespace.\\n \\n Signed-off-by:
W. Trevor King <wking@tremily.us>\\n\\n.tools/validate.go:56:\n trailing
whitespace.\\n+\\t\\t\\treturn vr \\n\"\n ...\n \n Signed-off-by: W.
Trevor King <wking@tremily.us>\n\n.tools/validate.go:57: trailing whitespace.\n+\t\t\treturn
vr \n"
...
But having the command in the "not ok" line should make it easy for
folks to reproduce locally if they're not collecting the YAML blocks
with a TAP harness.
Signed-off-by: W. Trevor King <wking@tremily.us>1 parent 404a639 commit bdaf446
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
46 | 62 | | |
47 | 63 | | |
48 | 64 | | |
| |||
0 commit comments