Browse Source

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 years ago
parent
commit
042a732cf5
1 changed files with 2 additions and 0 deletions
  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')
         cmd.append('--oneline')
     if use_no_decorate:
     if use_no_decorate:
         cmd.append('--no-decorate')
         cmd.append('--no-decorate')
+    if reverse:
+        cmd.append('--reverse')
     if count is not None:
     if count is not None:
         cmd.append('-n%d' % count)
         cmd.append('-n%d' % count)
     if commit_range:
     if commit_range: