Skip to content

Commit

Permalink
Invert numbers and names in the git-shortlog summary mode.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pierre Habouzit authored and Junio C Hamano committed Dec 11, 2007
1 parent 6508bb7 commit 97566ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-shortlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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--) {
Expand Down

0 comments on commit 97566ea

Please sign in to comment.