]> git.ipfire.org Git - thirdparty/git.git/commit
apply, ls-files: simplify "-z" parsing
authorJeff King <peff@peff.net>
Sun, 31 Jan 2016 11:35:46 +0000 (06:35 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Feb 2016 22:14:20 +0000 (14:14 -0800)
commit1f3c79a9d6c3278753e7fb63b48569a9ff8632df
tree904b918bc2dd1aa8f62ca578e36384f61662926c
parent22396175267b7bcef97a02036831152539429bec
apply, ls-files: simplify "-z" parsing

As a short option, we cannot handle negation. Thus a callback
handling "unset" is overkill, and we can just use OPT_SET_INT
instead to handle setting the option.

Anybody who adds "--nul" synonym to this later would need to be
careful not to break "--no-nul", which should mean that lines are
terminated with LF at the end.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/apply.c
builtin/ls-files.c