Re: [PATCH v3 10/11] contrib: remove "git-new-workdir"
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 8, 2025, 18:43 UTC
- Message-ID
- <xmqqms74wzsk.fsf@gitster.g>
- In-Reply-To
- <2b3c951b-0400-4cc5-b790-17ff77154ec2@app.fastmail.com>
"Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes:
Show 9 quoted lines
>> I understand >> why its designers felt that this would provide better guarantees (it >> is not a good idea to mutate branch names that are checked out >> somewhere else), but checking out various branches to test them and >> inspect their code (before returning to the feature branch I am >> actively working on) is a common part of my workflow. > > I agree, that’s a great use of worktrees. But I never feel like I have > to checkout the branch itself. I detach on top of the branch.
Yes. For sightseeing, not building on top of various random points in history, detached HEAD is a reasonable way to use multiple worktrees.