X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=tools%2Fpatman%2Fpatchstream.py;h=00404681c420ee2140936c7aadea805152db221e;hb=6ba5737ff06f09ad980cb1feee059c12bf89a7ff;hp=322871920772aeab0682883bdddd185c7b321e73;hpb=d7782d06534fe4fa47a49fa7c106de5ba85a9687;p=oweals%2Fu-boot.git diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py index 3228719207..00404681c4 100644 --- a/tools/patman/patchstream.py +++ b/tools/patman/patchstream.py @@ -379,14 +379,9 @@ def GetMetaDataForList(commit_range, git_dir=None, count=None, Returns: A Series object containing information about the commits. """ - params = ['git', 'log', '--no-color', '--reverse', '--no-decorate', - commit_range] - if count is not None: - params[2:2] = ['-n%d' % count] - if git_dir: - params[1:1] = ['--git-dir', git_dir] - pipe = [params] - stdout = command.RunPipe(pipe, capture=True).stdout + params = gitutil.LogCmd(commit_range,reverse=True, count=count, + git_dir=git_dir) + stdout = command.RunPipe([params], capture=True).stdout ps = PatchStream(series, is_log=True) for line in stdout.splitlines(): ps.ProcessLine(line)