From: Taylor Blau <me@ttaylorr.com>
To: Brian Lyles <brianmlyles@gmail.com>
Cc: Elijah Newren <newren@gmail.com>, git@vger.kernel.org
Subject: Re: Does extending `--empty` to git-cherry-pick make sense?
Date: Thu, 4 Jan 2024 14:33:47 -0500 [thread overview]
Message-ID: <ZZcIG+mNXhZ0rHw3@nand.local> (raw)
In-Reply-To: <CAHPHrSevBdQF0BisR8VK=jM=wj1dTUYEVrv31gLerAzL9=Cd8Q@mail.gmail.com>
[+cc Elijah]
On Thu, Jan 04, 2024 at 12:57:18AM -0600, Brian Lyles wrote:
> Is there any real barrier to exposing that option to git-cherry-pick as
> well? Was this an oversight, or intentionally left out? The
> corresponding commit message doesn't seem to indicate any specific
> reason for limiting it to git-rebase.
I am not nearly as familiar with this code as Elijah is, but this
certainly appears possible by setting the `drop_redundant_commits` and
`keep_redundant_commits` flags in the replay_opts struct.
I don't see any fundamental reason why cherry-pick shouldn't have the
same functionality.
Thanks,
Taylor
next prev parent reply other threads:[~2024-01-04 19:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-04 6:57 Does extending `--empty` to git-cherry-pick make sense? Brian Lyles
2024-01-04 19:33 ` Taylor Blau [this message]
2024-01-05 2:28 ` Elijah Newren
2024-01-05 3:20 ` Brian Lyles
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZZcIG+mNXhZ0rHw3@nand.local \
--to=me@ttaylorr.com \
--cc=brianmlyles@gmail.com \
--cc=git@vger.kernel.org \
--cc=newren@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox