]> git.ipfire.org Git - thirdparty/git.git/commit
last-modified: add option '-z' to help output
authorToon Claes <toon@iotcl.com>
Fri, 16 Jan 2026 13:22:50 +0000 (14:22 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 Jan 2026 18:27:20 +0000 (10:27 -0800)
commitf1136ddeb04c7198ce5e71a7ef6e9a1904d1eeb8
treec4ae3069e6006bafb4d595012f43f8e30e0746d0
parent8f5b52c62ae5fc38ac9f545539dd458977ebb235
last-modified: add option '-z' to help output

The parsing of option '-z' is done by diff_opt_parse(), which is called
by setup_revisions(), and ends up filling in
`struct diff_options::line_termination`. But that field isn't used by
the diff machinery itself, only by builtin/last-modified.c to format
the output.

To have '-z' also appear in the help output of `git last-modified -h`,
move the handling of '-z' to parse_options() in builtin/last-modified.c
itself.

Signed-off-by: Toon Claes <toon@iotcl.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/last-modified.c