]> git.ipfire.org Git - thirdparty/git.git/commit
reflog: improve error for when reflog is not found
authorKarthik Nayak <karthik.188@gmail.com>
Fri, 14 Mar 2025 08:40:34 +0000 (09:40 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Mar 2025 23:58:11 +0000 (16:58 -0700)
commit52f2dfb08413d8be6ecbe86271dfe92e33cb67a2
tree6747c6b64ca26b0d10f990af7b6d71e00cfcf448
parenta36e024e989f4d35f35987a60e3af8022cac3420
reflog: improve error for when reflog is not found

The 'git reflog expire' prints the error message '<ref> points nowhere!'
when used with a non-existent ref. This message is a bit confusing and
vague. Modify the message to be more clear and direct.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/reflog.c
t/t1410-reflog.sh