git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Jun 4, 2016, 01:54 UTC
Message-ID
<CAPig+cRwvfQ3hL9XKHteGr30M4eMKZm19_UCXGxuoqsxvXje4A@mail.gmail.com>
In-Reply-To
<20160603204235.7994-1-szeder@ira.uka.de>
On Fri, Jun 3, 2016 at 4:42 PM, SZEDER Gábor <szeder@ira.uka.de> wrote:
Show 8 quoted lines
> 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/
Show 10 quoted lines
> 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@textalk.se>
> Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Previous: SZEDER Gábor
Message 4 of 4 in “--orphan erases HEAD reflog”
  1. Patrik GustafssonJun 3, 2016
  2. SZEDER GáborJun 3, 2016
  3. reflog: continue walking the reflog past root commitsSZEDER Gábor, Jun 3, 2016
  4. Eric SunshineJun 4, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.