summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Habouzit <madcoder@debian.org>2007-12-11 14:43:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-12-11 17:57:29 (GMT)
commit97566ea72ea460576ccaea7b51dd32ab33e1c46c (patch)
tree3b18eda0aa83f65d7a34e8d1fee4f6bd9b019636
parent6508bb75f675a09f410ab55b842510d36c373c43 (diff)
downloadgit-97566ea72ea460576ccaea7b51dd32ab33e1c46c.zip
git-97566ea72ea460576ccaea7b51dd32ab33e1c46c.tar.gz
git-97566ea72ea460576ccaea7b51dd32ab33e1c46c.tar.bz2
Invert numbers and names in the git-shortlog summary mode.
Also make it `cut` friendly using a tab to separate the numbers and names. Signed-off-by: Pierre Habouzit <madcoder@debian.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--builtin-shortlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-shortlog.c b/builtin-shortlog.c
index 13df0c6..90666cb 100644
--- a/builtin-shortlog.c
+++ b/builtin-shortlog.c
@@ -265,7 +265,7 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix)
struct path_list *onelines = list.items[i].util;
if (summary) {
- printf("%s: %d\n", list.items[i].path, onelines->nr);
+ printf("%6d\t%s\n", onelines->nr, list.items[i].path);
} else {
printf("%s (%d):\n", list.items[i].path, onelines->nr);
for (j = onelines->nr - 1; j >= 0; j--) {