Re: [PATCH] checkout: indicate when a detached head is checked out for a branch
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 18, 2014, 22:18 UTC
- Message-ID
- <xmqqpph2l39d.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <1405720477.13250.8.camel@spirit>
Dennis Kaarsemaker <dennis@kaarsemaker.net> writes:
Show 5 quoted lines
> My use case for this is checking out the same branch (or commit, so > already on a detached HEAD) in multiple different places to run > independent actions (e.g. make test with different compiler options, or > creating several different packages) and I would really appreciate it if > that would keep working.
I do not have any problem if multiple working trees have the same commit checked out on their own detached HEADs at all. The "should error out" was solely for the case where the user asked not to detach but to obtain a state where a named branch is checked out. In such a case, the command should not turn it into a detached HEAD, with or without a warning.