Thread (1 message) 1 message, 1 author, 2018-06-22

Re: [PATCH] cherry-pick: do not error on non-merge commits when '-m 1' is specified

From: Sergey Organov <hidden>
Date: 2018-06-22 09:16:11

Junio C Hamano [off-list ref] writes:
Sergey Organov [off-list ref] writes:
quoted
When cherry-picking multiple commits, it's impossible to have both
merge- and non-merge commits on the same command-line. Not specifying
'-m 1' results in cherry-pick refusing to handle merge commits, while
specifying '-m 1' fails on non-merge commits.
Allowing "-m1" even when picking a single parent commit, because
the 1-st parent is defined for such a commit, makes sense, espeially
when running a cherry-pick on a range, exactly for the above reason.
It is slightly less so when cherry-picking a single commit, but not
by a large margin.
[...]
quoted
+	} else if (1 < opts->mainline)
+		/* Non-first parent explicitly specified as mainline for
+		 * non-merge commit */
Style.

	/*
	 * Our multi-line comments are to be
	 * formatted like this.
	 */
Ah, sorry for that. Will you fix it for me?

Thanks!

-- Sergey
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help