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

- From: Junio C Hamano \<hidden\>
- Date: 2022-02-25 17:26:39 
- List: git
- Page: https://ratatoskr.run/git/2022/02/7931342
- Thread: https://ratatoskr.run/git/2022/02/7931342/t.md

```text
Ævar Arnfjörð Bjarmason [ref] writes:

>>> +	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.
```
