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

Re: [PATCH v2] switch: mention the --detach option when dying due to lack of a branch

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 25, 2022, 17:26 UTC
Message-ID
<xmqq1qzqg8mv.fsf@gitster.g>
In-Reply-To
<220225.86h78n88gb.gmgdl@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 8 quoted lines
>>> +	test_i18ngrep ! "try again with the --detach option" stderr
>>> +'
>>
>> OK, we try to be consistent with other tests in the file, and leave
>> s/test_i18n// to a file-wide clean-up outside the topic.
>
> FWIW that's not the case here. This is the first use of test_i18ngrep in
> this file.

Oh, thanks for pointing it out---I remembered that somebody gave a similar suggestion and blindly assumed that there are other instances already. If so, picking, between grep and test_cmp, whichever requires the least amount of boilerplate code is fine by me.

Thanks.
Previous: Alex Henrie
Message 6 of 6 in “switch: mention the --detach option when dying due to lack of a branch”
  1. switch: mention the --detach option when dying due to lack of a branchAlex Henrie, Feb 24, 2022
  2. Ævar Arnfjörð BjarmasonFeb 24, 2022
  3. Junio C HamanoFeb 24, 2022
  4. Ævar Arnfjörð BjarmasonFeb 25, 2022
  5. Alex HenrieFeb 25, 2022
  6. Junio C HamanoFeb 25, 2022

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.