зеркало из https://github.com/microsoft/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 <madcoder@debian.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
6508bb75f6
Коммит
97566ea72e
|
@ -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--) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче