summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 17dcbfb)
raw | patch | inline | side by side (parent: 17dcbfb)
author | Andreas Bießmann <andreas.devel@googlemail.com> | |
Mon, 15 Apr 2013 23:52:18 +0000 (23:52 +0000) | ||
committer | Tom Rini <trini@ti.com> | |
Thu, 18 Apr 2013 20:16:32 +0000 (16:16 -0400) |
The git config parameter log.decorate is quite useful when working with git.
Patman, however can not handle the decorated output when parsing the commit.
To prevent this use the '--no-decorate' switch for git-log.
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Patman, however can not handle the decorated output when parsing the commit.
To prevent this use the '--no-decorate' switch for git-log.
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
Acked-by: Simon Glass <sjg@chromium.org>
tools/patman/gitutil.py | patch | blob | history | |
tools/patman/patchstream.py | patch | blob | history |
index f48575013f5703ce43c2cbf5195b8746511fc7fc..e31da1548dcf87c8a822385d818b8afc5a8878d0 100644 (file)
--- a/tools/patman/gitutil.py
+++ b/tools/patman/gitutil.py
Return:
Number of patches that exist on top of the branch
"""
- pipe = [['git', 'log', '--no-color', '--oneline', '@{upstream}..'],
+ pipe = [['git', 'log', '--no-color', '--oneline', '--no-decorate',
+ '@{upstream}..'],
['wc', '-l']]
stdout = command.RunPipe(pipe, capture=True, oneline=True).stdout
patch_count = int(stdout)
Number of patches that exist on top of the branch
"""
range_expr = GetRangeInBranch(git_dir, branch, include_upstream)
- pipe = [['git', '--git-dir', git_dir, 'log', '--oneline', range_expr],
+ pipe = [['git', '--git-dir', git_dir, 'log', '--oneline', '--no-decorate',
+ range_expr],
['wc', '-l']]
result = command.RunPipe(pipe, capture=True, oneline=True)
patch_count = int(result.stdout)
Return:
Number of patches that exist on top of the branch
"""
- pipe = [['git', 'log', '--oneline', commit_range],
+ pipe = [['git', 'log', '--oneline', '--no-decorate', commit_range],
['wc', '-l']]
stdout = command.RunPipe(pipe, capture=True, oneline=True).stdout
patch_count = int(stdout)
index 7334ed30e36da32490f2fae2fe943b8f16238081..b4337ccbdfce999e2ddd55d078cf90fc6a484e06 100644 (file)
Returns:
A Series object containing information about the commits.
"""
- params = ['git', 'log', '--no-color', '--reverse', commit_range]
+ params = ['git', 'log', '--no-color', '--reverse', '--no-decorate',
+ commit_range]
if count is not None:
params[2:2] = ['-n%d' % count]
if git_dir: