Re: [PATCH] Detached HEAD (experimental)

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

 



"Shawn O. Pearce" <spearce@xxxxxxxxxxx> writes:

> The common case is probably going to be where the argument to
> `git checkout` is a fast-foward of the detached HEAD.  And that's
> pretty cheap to check.  So we perform that check, and if we fail
> that then we search through every ref to determine if the detached
> HEAD is fully contained in any of those.  Currently that would be
> pretty slow to do with the current tools, but a small modification
> of say git-merge-base (or git-describe) might make it cheap enough
> to run during this slightly less common case.

The needed change to merge-base is quite minimum.  Let me come
up with a patch...

-
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]