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.