From: Pierre Habouzit Date: Tue, 11 Dec 2007 14:43:51 +0000 (+0100) Subject: Invert numbers and names in the git-shortlog summary mode. X-Git-Tag: v1.5.4-rc0~2^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=97566ea72ea460576ccaea7b51dd32ab33e1c46c;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin-shortlog.c b/builtin-shortlog.c index 13df0c668..90666cbd7 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--) {