Re: --orphan erases HEAD reflog

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> after running the command:
> 
> git checkout --orphan fuleFix
> 
> my HEAD reflog is emptied.
> I would like to have my reflog intact :)

No worries, your reflog is still intact :)  It's just the reflog
walker stopping prematurely upon encountering the null sha1 of the new
root commit's reflog entry.  Patch follows in a minute.

Of course you still won't be able to list the reflog right after 'git
checkout --orphan', because HEAD is invalid.  You have to create a new
root commit or switch to an existing branch first.


Gábor

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]