瀏覽代碼

patman: Support the 'reverse' option for 'git log'

This option is currently not supported, but needs to be, for buildman to
operate as expected.

Reported-by: York Sun <yorksun@freescale.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
Simon Glass 10 年之前
父節點
當前提交
042a732cf5
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      tools/patman/gitutil.py

+ 2 - 0
tools/patman/gitutil.py

@@ -38,6 +38,8 @@ def LogCmd(commit_range, git_dir=None, oneline=False, reverse=False,
         cmd.append('--oneline')
     if use_no_decorate:
         cmd.append('--no-decorate')
+    if reverse:
+        cmd.append('--reverse')
     if count is not None:
         cmd.append('-n%d' % count)
     if commit_range: