From: phillip.wood123@gmail.com Date: Wed, 13 Mar 2024 16:10:35 GMT Subject: Re: [PATCH v3 7/7] cherry-pick: add `--empty` for more robust redundant commit handling Message-ID: In-Reply-To: <20240310184602.539656-8-brianmlyles@gmail.com> Hi Brian On 10/03/2024 18:42, Brian Lyles wrote: > As with git-rebase(1) and git-am(1), git-cherry-pick(1) can result in a > commit being made redundant if the content from the picked commit is > already present in the target history. However, git-cherry-pick(1) does > not have the same options available that git-rebase(1) and git-am(1) have. > > There are three things that can be done with these redundant commits: > drop them, keep them, or have the cherry-pick stop and wait for the user > to take an action. git-rebase(1) has the `--empty` option added in commit > e98c4269c8 (rebase (interactive-backend): fix handling of commits that > become empty, 2020-02-15), which handles all three of these scenarios. > Similarly, git-am(1) got its own `--empty` in 7c096b8d61 (am: support > --empty=