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

Re: (unknown)

From
David Greene <greened@obbligato.org>
Date
Dec 18, 2015, 17:35 UTC
Message-ID
<nngr3ij3bj8.fsf@lnx-dag.us.cray.com>
In-Reply-To
<20151216084406.GA3241@pks-pc>
Patrick Steinhardt <ps@pks.im> writes:
Show 17 quoted lines
> On Tue, Dec 15, 2015 at 09:57:50PM -0800, Junio C Hamano wrote:
>> David Greene <greened@obbligato.org> writes:
>> 
>> > - If new option --keep-redundant is specified, invoke cherry-pick with
>> >   --keep-redundant-commits.
>> 
>> This came up in the past several weeks, I think; you would need to
>> disable patch-equivalence based commit filtering if you really want
>> to do a --keep-redundant that is reproducible and/or reliable.
>
> Here are the links to the previous proposal [1] and following
> discussion [2] (see 'ps/rebase-keep-empty') if you are
> interested.
>
> Patrick
>
> [1]: http://thread.gmane.org/gmane.comp.version-control.git/281515[2]: http://thread.gmane.org/gmane.comp.version-control.git/281917
Thanks.  That makes total sense.

I actually would prefer a behavior where cherry-pick would just drop redundant commits rather than stopping and asking the user to reset. The problem is that rebase --preserve-merges seems to force the drop to use cherry-pick and cherry-pick doesn't behave well (from a scripting perspective) in the presence of redundant commits.

As it is, it's difficult to rebase as part of a scripted operation due to this issue.

Any ideas on how to teach cherry-pick to automatically drop such commits?

                           -David
Previous: Patrick Steinhardt
Message 5 of 5 in “(unknown)”
  1. David GreeneDec 16, 2015
  2. Support rebase --keep-empty and --keep-redundantDavid Greene, Dec 16, 2015
  3. Junio C HamanoDec 16, 2015
  4. Patrick SteinhardtDec 16, 2015
  5. David GreeneDec 18, 2015

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.