diff options
author | Nicolas Schier <nicolas@fjasle.eu> | 2024-02-07 09:25:35 +0100 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2024-02-07 12:15:24 -0500 |
commit | 0fe26a3bbadfeb4a86f92b7b1e32aef203fe59f7 (patch) | |
tree | 010a72121f8d7bd4d0ecc1b4ae1ecf63e38def2f | |
parent | 2d94097cd5aedddd6985ec6154e0956293f4143b (diff) | |
download | b4-0fe26a3bbadfeb4a86f92b7b1e32aef203fe59f7.tar.gz |
ty: auto-matching: Do not consume commit decorations
Disable decoration when reading git log output for getting a list of git
commits.
Without '--no-decorate', commits that have branches or tags pointing to
them, will not be recognised by subject as get_all_commits will assume
that the decoration is part of the commits subject line, e.g.:
(HEAD -> main, tag: v1.142, origin/main) Dummy commit subject
instead of
Dummy commit subject
thus the former will never match the real patch subject line.
Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r-- | b4/ty.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -164,7 +164,7 @@ def get_all_commits(gitdir: Optional[str], branch: str, since: str = '1.week', usercfg = b4.get_user_config() committer = usercfg['email'] - gitargs = ['log', '--committer', committer, '--no-abbrev', '--oneline', '--since', since, branch] + gitargs = ['log', '--committer', committer, '--no-abbrev', '--no-decorate', '--oneline', '--since', since, branch] lines = b4.git_get_command_lines(gitdir, gitargs) if not len(lines): logger.debug('No new commits from the current user --since=%s', since) |