aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2022-08-31 17:39:00 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2022-08-31 17:39:00 -0400
commit1ee1cff0a8e7c8ca0aa4992535de78aa54aebcb3 (patch)
treece5024c4a69f9651f880ae04a49d57daae879044
parent3b34443b1e40205bf4ed5a974674a5bfbad01a2c (diff)
downloadb4-1ee1cff0a8e7c8ca0aa4992535de78aa54aebcb3.tar.gz
trailers: ignore merges when looking at the commit log
When finding the range of most recent commits for b4 trailers -u, ignore any merge commits. Reported-by: Vishal Verma <vishal@kernel.org> Link: https://msgid.link/2517d5cdff57048a13e85b9604957b73b69724c3.camel@kernel.org Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--b4/ez.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/b4/ez.py b/b4/ez.py
index 12dbf2c..7187dad 100644
--- a/b4/ez.py
+++ b/b4/ez.py
@@ -637,7 +637,7 @@ def update_trailers(cmdargs: argparse.Namespace) -> None:
# There doesn't appear to be a great way to find the first commit
# where we're NOT the committer, so we get all commits since range specified where
# we're the committer and stop at the first non-contiguous parent
- gitargs = ['log', '-F', f'--committer={myemail}', '--since', cmdargs.since, '--format=%H %P']
+ gitargs = ['log', '-F', '--no-merges', f'--committer={myemail}', '--since', cmdargs.since, '--format=%H %P']
lines = b4.git_get_command_lines(None, gitargs)
if not lines:
logger.critical('CRITICAL: could not find any commits where committer=%s', myemail)