Skip to content

Commit d6dcb92

Browse files
committed
check-ignore -z: a single -z should apply to both input and output
Unless a command has separate --nul-terminated-{input,output} options, the --nul-terminated-records (-z) option should apply to both input and output for consistency. The caller knows that its input paths may need to be protected for LF, and the program shows these problematic paths to its output. The code already did the right thing. Only the help text needs fixing. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 94a55e4 commit d6dcb92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/check-ignore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ static const struct option check_ignore_options[] = {
2121
OPT_BOOLEAN(0, "stdin", &stdin_paths,
2222
N_("read file names from stdin")),
2323
OPT_BOOLEAN('z', NULL, &nul_term_line,
24-
N_("input paths are terminated by a NUL character")),
24+
N_("terminate input and output records by a NUL character")),
2525
OPT_END()
2626
};
2727

0 commit comments

Comments
 (0)