From: Simon Glass <sjg@chromium.org>
Date: Fri, 15 Aug 2014 03:59:11 +0000 (-0600)
Subject: patman: Support the 'reverse' option for 'git log'
X-Git-Tag: v2025.01-rc5-pxa1908~14790^2
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/gitweb.css?a=commitdiff_plain;h=042a732cf50568e77a20c540341fccf28ba62bcf;p=u-boot.git

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>
---

diff --git a/tools/patman/gitutil.py b/tools/patman/gitutil.py
index 735c8dddac..e2b4959d58 100644
--- a/tools/patman/gitutil.py
+++ b/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: