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

Re: [PATCH/RFC] filter-branch: support skipping of commits more easily

From
Llinux@horizon.com <linux@horizon.com>
Date
Jun 8, 2007, 02:11 UTC
Message-ID
<20070608021157.18066.qmail@science.horizon.com>
Show 20 quoted lines
> I think that is fine; in effect, by saying "skip" B, you are
> squashing B-C into C'.
> 
> Does this mean that, given
> 
>           C---D---E
>          /   /
>         A---B
> 
> and if commit-filter says "skip" on D, the written history would
> look like this?
> 
>           C'------E'
>          /       /
>         A'--B'--'
> 
> The new commit E' would become an evil merge that has difference
> between D and E in the original history?
> 
> I am not objecting; just trying to get a mental picture.
I think, for compatibility with the existing git path limiter,
it should delete D from the history only if:
1) Told to skip D, and
2) Told to skip B or C (or both).

So you could get A--B--E' or A--C--E' or even A--E', but D would only be deleted if it wasn't needed as a merge marker.

That's probably a little more complex to implement, but it feels like The Right Thing.

Next: Johannes Schindelin
Message 1 of 2 in “Re: [PATCH/RFC] filter-branch: support skipping of commits more easily”
  1. linux@horizon.comJun 8, 2007
  2. Johannes SchindelinJun 8, 2007

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.