Re: Where is git checkout --orphan implemented at.

2018-06-11 Thread Jeff King
On Mon, Jun 11, 2018 at 10:35:40AM -0700, Junio C Hamano wrote: > Jeff King writes: > > > If you don't even have symbolic-ref handy, you can do: > > > > echo "ref: refs/heads/new-branch" >.git/HEAD > > > > That's not generally recommended, since future versions of Git may > > change the ref st

Re: Where is git checkout --orphan implemented at.

2018-06-11 Thread Junio C Hamano
Jeff King writes: > If you don't even have symbolic-ref handy, you can do: > > echo "ref: refs/heads/new-branch" >.git/HEAD > > That's not generally recommended, since future versions of Git may > change the ref storage format, but it would work with any current > version of Git. Makes one won

Re: Where is git checkout --orphan implemented at.

2018-06-05 Thread Jeff King
On Tue, Jun 05, 2018 at 12:02:12PM -0400, Sean Hunt wrote: > I would like to see the source code to git checkout --orphan so I can > learn how it works and so I can manually do what it does by hand on > making a new branch with no history in the refs folder. I can only do > it on my iPhone as my l

Where is git checkout --orphan implemented at.

2018-06-05 Thread Sean Hunt
I would like to see the source code to git checkout --orphan so I can learn how it works and so I can manually do what it does by hand on making a new branch with no history in the refs folder. I can only do it on my iPhone as my laptop has no internet or way to do it there, and the program on m