Re: [PATCH v5] doc: checkout: rewrite detached HEAD state explanation
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 12, 2026, 04:08 UTC
- Message-ID
- <xmqqmrrelmja.fsf@gitster.g>
- In-Reply-To
- <xmqqqzgrklkh.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
Show 18 quoted lines
> >> diff --git a/advice.c b/advice.c >> index 401d047391..8d2c1ff1ee 100644 >> --- a/advice.c >> +++ b/advice.c >> @@ -291,6 +291,7 @@ void detach_advice(const char *new_name) >> "\n" >> " git switch -\n" >> "\n" >> + "Run `git help detached-head` to learn more.\n" > > Shouldn't we be using a normal single quote instead of backtick? > > Existing references to command in this file has the command without > quotes, on its own line "\tgit merge --no-ff\n", or uses a normal > single quote as in "... use 'git add/rm <file>'". > > People's terminals do not grok markdown anyway ;-)
One more thing.
This change needs to update t/t2020-checkout-detach.sh because the new output is not expected there (yet).