]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jc/name-rev-stdin'
authorJunio C Hamano <gitster@pobox.com>
Wed, 9 Feb 2022 22:21:00 +0000 (14:21 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Feb 2022 22:21:00 +0000 (14:21 -0800)
"git name-rev --stdin" does not behave like usual "--stdin" at
all.  Start the process of renaming it to "--annotate-stdin".

* jc/name-rev-stdin:
  name-rev.c: use strbuf_getline instead of limited size buffer
  name-rev: deprecate --stdin in favor of --annotate-stdin

1  2 
t/t4202-log.sh
t/t6120-describe.sh

diff --cc t/t4202-log.sh
Simple merge
index d8af2bb9d2b876c3277d1211468ce4717b83697e,145b20a95a4d32b02e13f91ef972921afba5fcef..9781b92aeddfee9fbfbfba921a15edea51de50cd
@@@ -275,10 -275,10 +275,10 @@@ test_expect_success 'name-rev --annotat
        for rev in $(git rev-list --all)
        do
                name=$(git name-rev --name-only $rev) &&
 -              echo "$rev ($name)" >>expect.unsorted
 +              echo "$rev ($name)" >>expect.unsorted || return 1
        done &&
        sort <expect.unsorted >expect &&
-       git rev-list --all | git name-rev --stdin >actual.unsorted &&
+       git rev-list --all | git name-rev --annotate-stdin >actual.unsorted &&
        sort <actual.unsorted >actual &&
        test_cmp expect actual
  '