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

Re: [PATCH] revision: --ancestry-path

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 21, 2010, 09:04 UTC
Message-ID
<7vy6ghb2hm.fsf@alter.siamese.dyndns.org>
In-Reply-To
<201004211046.22643.johan@herland.net>
Johan Herland <johan@herland.net> writes:
Show 10 quoted lines
> I'm not very familiar with "rewrite_parents", nor do I know exactly how it 
> should affect/interoperate with --ancestry-path in all cases, but running
>
> 	git rev-list D..M -- M.t
>
> produces one commit (M), whereas
>
> 	git rev-list --ancestry-path D..M -- M.t
>
> produces nothing, so I suspect there is something not quite right here.
Merge simplification gets in our way big time.
          D---E-------F
         /     \       \
    B---C---G---H---I---J
   /                     \
  A-------K---------------L--M

While traversing the history from M, we notice that M's parent is L, and then further we notice that neither the transition between J to L nor between K to L change the named path M.t, so we simplify the merge L to have K as its sole parent. This makes M appear disconnected from D's decendant chain, and causes the TMP_MARK reverse traversal not to work as intended.

Previous: Johan HerlandNext: Junio C Hamano
Message 10 of 11 in “Getting 'git log' (or something else) to show me the relevant sub-graph?”
  1. Johan HerlandApr 20, 2010
  2. Michael J GruberApr 20, 2010
  3. Junio C HamanoApr 20, 2010
  4. revision: --ancestry-pathJunio C Hamano, Apr 20, 2010
  5. Johan HerlandApr 21, 2010
  6. Johannes SixtApr 21, 2010
  7. Junio C HamanoApr 21, 2010
  8. revision: --ancestry-pathJunio C Hamano, Apr 21, 2010
  9. Johan HerlandApr 21, 2010
  10. Junio C HamanoApr 21, 2010
  11. Junio C HamanoApr 21, 2010

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.