Skip to contentSkip to conversation

patman: implement 'reverse' in LogCmd()

PATCH New Steve Rae 2 participants 2 messages Aug 23, 2014

lore
Share & tools
lore

Steve Rae

author
#0 lore raw

PATCH 1/1 patman: implement 'reverse' in LogCmd()

- add missing capability 'git log --reverse'

- a recent change (cda2a61) broke patman, the "Changes in v?" tags are being applied to the wrong commits!
END

---

 tools/patman/gitutil.py | 2 ++
 1 file changed, 2 insertions(+)
tools/patman/gitutil.py +2 -0
index 735c8dd..6af6c2a 100644
@@ -36,6 +36,8 @@ def LogCmd(commit_range, git_dir=None, oneline=False, reverse=False,
     cmd += ['log', '--no-color']
     if oneline:
         cmd.append('--oneline')
+    if reverse:
+        cmd.append('--reverse')
     if use_no_decorate:
         cmd.append('--no-decorate')
     if count is not None:
Signature · 1 line
1.8.5
#1 lore raw

PATCH 1/1 patman: implement 'reverse' in LogCmd()

Hi Steve,

Quoted 5 lines · Steve Rae

- add missing capability 'git log --reverse'

- a recent change (cda2a61) broke patman, the "Changes in v?" tags are being applied to the wrong commits!

Thanks for the patch. We already have one for this:

http://patchwork.ozlabs.org/patch/380068/

I'll organise a pull request soon and it will be fixed.

Regards,
Simon