]> git.ipfire.org Git - thirdparty/git.git/commit
last-modified: document option '--max-depth'
authorToon Claes <toon@iotcl.com>
Tue, 20 Jan 2026 21:47:10 +0000 (22:47 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Jan 2026 22:13:04 +0000 (14:13 -0800)
commit9bfaf78cb28b26ab0538e2edd2229547d6be962f
treec0ba644078ebb23879dae5226948761a2fcf1779
parent209574de2d2ab0a264522c8c44c3eebb6d03ec43
last-modified: document option '--max-depth'

Option --max-depth is supported by git-last-modified(1), because it was
added to the diff machinery in a1dfa5448d (diff: teach tree-diff a
max-depth parameter, 2025-08-07).

This option is useful for everyday use of the git-last-modified(1)
command, so document it's existence in the man page.

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. This prepares for the change in default
behavior in the next commit.

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