]> git.ipfire.org Git - thirdparty/git.git/commit
last-modified: rewrite error message when more than one revision given
authorToon Claes <toon@iotcl.com>
Fri, 16 Jan 2026 13:08:37 +0000 (14:08 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 Jan 2026 17:30:26 +0000 (09:30 -0800)
commitbdc0ddf8ad4ee8be4b908a3a55070958bdf512a0
tree18bd84a89b9ebef1f36ee058f4343872a0f946c2
parent66ce5f8e8872f0183bb137911c52b07f1f242d13
last-modified: rewrite error message when more than one revision given

When more than one revision is passed to the git-last-modified(1)
command, this error message was printed:

    error: last-modified can only operate on one tree at a time

Calling these a "tree" is technically not correct. git-last-modified(1)
expects revisions that peel to a commit.

Rephrase the error message to:

    error: last-modified can only operate on one revision at a time

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