]> git.99rst.org Git - git.git/commit
last-modified: rewrite error message when more than one commit given
authorToon Claes <redacted>
Fri, 30 Jan 2026 14:26:35 +0000 (15:26 +0100)
committerJunio C Hamano <redacted>
Fri, 30 Jan 2026 16:57:00 +0000 (08:57 -0800)
commit85329e31dd4c864a5a200d0a0ded886599adc2c5
tree73a25a65b3f07a3bc8cdf0ab2afccf6dbdff030c
parent66ce5f8e8872f0183bb137911c52b07f1f242d13
last-modified: rewrite error message when more than one commit given

When more than one commit 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 commit at a time

While at it, modify the test to ensure the correct error message is
printed.

Signed-off-by: Toon Claes <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/last-modified.c
t/t8020-last-modified.sh
git clone https://git.99rst.org/PROJECT