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

In previous commit option '--max-depth' was added to the documentation.
To have it also appear in the help output of `git last-modified -h`,
move the handling of '--max-depth' to parse_options() in
builtin/last-modified.c itself.

It enables us to change default behavior in a subsequent commit.

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