git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] log: test for regression introduced in v1.7.2-rc0~103^2~2

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Aug 15, 2010, 09:24 UTC
Message-ID
<AANLkTi=PAW_Owy_-DSQ32sboB28373Gb_aySbpeprwLg@mail.gmail.com>
In-Reply-To
<7v39uggs5h.fsf@alter.siamese.dyndns.org>
On Sun, Aug 15, 2010 at 09:08, Junio C Hamano <gitster@pobox.com> wrote:
Show 10 quoted lines
> Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
>
>> On Sat, Aug 14, 2010 at 01:10, Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
>>> Add a regression test for the git log -M --follow --name-only bug
>>> introduced in v1.7.2-rc0~103^2~2
>>
>> AKA "we didn't have any tests for log's --name-only *at all*".
>
> But this is not related to --name-only at all; anything that is "diff"
> related, e.g. -p, --stat, --name-status, will share the same issue.

I meant that as an extra benefit this is the first test for log + --name-only.

Show 14 quoted lines
>> diff --git a/t/t4202-log.sh b/t/t4202-log.sh
>> index 95ac3f8..ff624f4 100755
>> --- a/t/t4202-log.sh
>> +++ b/t/t4202-log.sh
>> @@ -441,5 +441,14 @@ test_expect_success 'log.decorate configuration' '
>>
>>  '
>>
>> +test_expect_success 'Regression test for v1.7.2-rc0~103^2~2' '
>
> This is uninformative and ugly at the same time.
>
>  - Can't we describe the nature of the situation where the old bug
>   triggers concisely?  Perhaps 'show added path under "--follow -M"?'

I didn't grok why this was happening, but yeah, that description is better.

>> +     # Needs an unrelated root commit
>> +     test_commit README &&
>
> This is not a "root" commit, is it?
s/root/first/
Show 5 quoted lines
>> +     >Foo.bar &&
>> +     git add Foo.bar &&
>> +     git commit --allow-empty-message </dev/null &&
>
> Does emptiness of the message matter?

No, I was just going for a minimal test case, no commit message is more minimal than having one.

Previous: Junio C HamanoNext: Junio C Hamano
Message 12 of 16 in “BUG: git log: fatal: internal error in diff-resolve-rename-copy”
  1. Constantine PlotnikovAug 13, 2010
  2. Ævar Arnfjörð BjarmasonAug 13, 2010
  3. Junio C HamanoAug 13, 2010
  4. Linus TorvaldsAug 13, 2010
  5. Junio C HamanoAug 13, 2010
  6. diff --follow: do call diffcore_std() as necessaryJunio C Hamano, Aug 13, 2010
  7. Ævar Arnfjörð BjarmasonAug 13, 2010
  8. Junio C HamanoAug 13, 2010
  9. log: test for regression introduced in v1.7.2-rc0~103^2~2Ævar Arnfjörð Bjarmason, Aug 14, 2010
  10. Ævar Arnfjörð BjarmasonAug 14, 2010
  11. Junio C HamanoAug 15, 2010
  12. Ævar Arnfjörð BjarmasonAug 15, 2010
  13. Junio C HamanoAug 16, 2010
  14. Ævar Arnfjörð BjarmasonAug 16, 2010
  15. log: test for regression introduced in v1.7.2-rc0~103^2~2Ævar Arnfjörð Bjarmason, Aug 15, 2010
  16. Constantine PlotnikovAug 17, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.