Thread (2 messages) flat view 2 messages, 2 authors, 2021-01-06

Re: New orphan worktree?

From: Jim Hill <hidden>
Date: 2021-01-06 22:26:29

On Wed, Jan 6, 2021 at 2:15 PM Junio C Hamano [off-list ref] wrote:
not a good example to support the use of the "--orphan" option.
I agree with that part, slathering infrastructure and abstractions on
oneliners (okay, twoliners) is suspect in my book. worktree add,
symoblic ref (really, no need to get lowlevel there, checkout --orphan
does it) done. Tag an empty commit and the sequence gets closer
to a legit oneliner

    git worktree add foo empty; git -C foo checkout --orphan newbranch
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help