Re: [PATCH] reflog: continue walking the reflog past root commits

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

 



On Fri, Jun 3, 2016 at 4:42 PM, SZEDER Gábor <szeder@xxxxxxxxxx> wrote:
> If a repository contains more than one root commit, then its HEAD
> reflog may contain multiple "creation events", i.e. entries whose
> "from" value is the null sha1.  Listing such a reflog currently stops
> prematurely at the first such entry, even when the reflog still
> contains older entries.  This can scare users into thinking that their
> reflog got truncated after 'git checkout --orphan'.
>
> Continue walking the reflog past such creation evens based on the

s/evens/events/

> preceeding reflog entry's "new" value.
>
> The test 'symbolic-ref writes reflog entry' in t1401-symbolic-ref
> implicitly relies on the current behavior of the reflog walker to stop
> at a root commit and thus to list only the reflog entries that are
> relevant for that test.  Adjust the test to explicitly specify the
> number of relevant reflog entries to be listed.
>
> Reported-by: Patrik Gustafsson <pvn@xxxxxxxxxx>
> Signed-off-by: SZEDER Gábor <szeder@xxxxxxxxxx>
--
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]