git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [StGit PATCH] fix stg mail %(shortlog)s order
@ 2009-06-19  5:30 Alex Chiang
  0 siblings, 0 replies; only message in thread
From: Alex Chiang @ 2009-06-19  5:30 UTC (permalink / raw)
  To: catalin.marinas, kha; +Cc: git

When using the %(shortlog)s variable, the patches are listed in
the cover letter in the reverse order of the actual patch series.

We should list them in the actual order of the patch series instead.

Signed-off-by: Alex Chiang <achiang@hp.com>
---
diff --git a/stgit/commands/mail.py b/stgit/commands/mail.py
index 69b19fa..abd42e4 100644
--- a/stgit/commands/mail.py
+++ b/stgit/commands/mail.py
@@ -399,7 +399,7 @@ def __build_cover(tmpl, patches, msg_id, options):
                  'totalnr':      total_nr_str,
                  'number':       number_str,
                  'shortlog':     stack.shortlog(crt_series.get_patch(p)
-                                                for p in patches),
+                                                for p in reversed(patches)),
                  'diffstat':     gitlib.diffstat(git.diff(
                      rev1 = git_id(crt_series, '%s^' % patches[0]),
                      rev2 = git_id(crt_series, '%s' % patches[-1]),

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-19  5:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-19  5:30 [StGit PATCH] fix stg mail %(shortlog)s order Alex Chiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).