aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2026-07-06 19:58:47 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2026-07-06 20:02:34 +0000
commit5f4c87e6503cd0e1644b86201eafdb11e7e53b90 (patch)
tree5267ed0fb909672d41c594d5e738e83edf8f3803
parentf01c509568f25c8003bf2b0c5f6fa008e5f8f810 (diff)
git-mfc: Allow merging merge commits
In order to merge merge commits (such as vendor imports), we need to tell git cherry-pick which of the two branches referenced in the commit is the mainline. In our case, it is always the first. Approved by: markj
-rwxr-xr-xtools/tools/git/git-mfc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tools/git/git-mfc b/tools/tools/git/git-mfc
index 181432fad523..c3ff474add3e 100755
--- a/tools/tools/git/git-mfc
+++ b/tools/tools/git/git-mfc
@@ -358,7 +358,7 @@ def pending(repo, upstream, author=None, baking=False):
def cherry_pick(commit, edit=False):
"""Cherry-pick a single commit with -x. Abort on failure."""
- cmd = ['git', 'cherry-pick', '-x']
+ cmd = ['git', 'cherry-pick', '-x', '-m1']
if edit:
cmd.append('-e')
cmd.append(commit.hexsha)