diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-03-11 14:25:05 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-03-12 08:48:54 -0700 |
| commit | de3dec118784e82855ba3635726ccff09b596bec (patch) | |
| tree | 51492de1826a9f6f4cbd83d2cd489f85f33a6838 /t | |
| parent | t6120: further modernize (diff) | |
| download | git-de3dec118784e82855ba3635726ccff09b596bec.tar.gz git-de3dec118784e82855ba3635726ccff09b596bec.zip | |
name-rev: remove "--stdin" support
As part of Git 3.0, remove the hidden synonym for "--annotate-stdin"
for real. As this does not change the fact that it used to be
called "--stdin" in older version of Git, keep that passage in the
documentation for "--annotate-stdin".
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
| -rwxr-xr-x | t/t6120-describe.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/t/t6120-describe.sh b/t/t6120-describe.sh index 71e261394a..256ccaefb7 100755 --- a/t/t6120-describe.sh +++ b/t/t6120-describe.sh @@ -300,8 +300,14 @@ test_expect_success 'name-rev --annotate-stdin' ' test_expect_success 'name-rev --stdin deprecated' ' git rev-list --all >list && - git name-rev --stdin <list 2>actual && - test_grep "warning: --stdin is deprecated" actual + if ! test_have_prereq WITH_BREAKING_CHANGES + then + git name-rev --stdin <list 2>actual && + test_grep "warning: --stdin is deprecated" actual + else + test_must_fail git name-rev --stdin <list 2>actual && + test_grep "unknown option .stdin." actual + fi ' test_expect_success 'describe --contains with the exact tags' ' |
