@matheusbsbs / matheus-bagliano / commits / 97566ea72e
Fork 0

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>

Pierre Habouzit committed Dec 11, 2007 at 15:43 UTC 97566ea72ea460576ccaea7b51dd32ab33e1c46c
1 file changed +1 -1
builtin-shortlog.c
+1 -1
@@ -265,7 +265,7 @@ int cmd_shortlog(int argc, const char **argv, const char *prefix)
265 struct path_list *onelines = list.items[i].util;
266
267 if (summary) {
268 - printf("%s: %d\n", list.items[i].path, onelines->nr);
268 + printf("%6d\t%s\n", onelines->nr, list.items[i].path);
269 } else {
270 printf("%s (%d):\n", list.items[i].path, onelines->nr);
271 for (j = onelines->nr - 1; j >= 0; j--) {