{"thread":{"id":"13076","subject":"[PATCH] shortlog wrap usage","startedAt":"2008-04-12T13:05:25Z","lastAt":"2008-04-12T22:37:57Z","messageCount":2,"participants":["Fredrik Noring","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"74200","messageId":"E874634E-9746-4916-81F3-433C2A71BDC7@nocrew.org","threadId":"13076","inReplyTo":null,"subject":"[PATCH] shortlog wrap usage","fromName":"Fredrik Noring","fromEmail":"noring@nocrew.org","sentAt":"2008-04-12T13:05:25Z","receivedAt":"2008-04-12T13:05:25Z","isPatch":true,"sender":{"key":"noring@nocrew.org","avatar":null},"body":"Hi all,\n\nFound this hidden \"-w\" option to the shortlog command, and thought it  \nmight be good to have it documented.\n\n  builtin-shortlog.c  |    2 +-\n  man1/git-shortlog.1 |    6 +++++-\n  2 files changed, 6 insertions(+), 2 deletions(-)\n\nThanks,\nFredrik\n\n\n\ndiff --git a/man1/git-shortlog.1 b/man1/git-shortlog.1\nindex 306c821..3602ad9 100644\n--- a/man1/git-shortlog.1\n+++ b/man1/git-shortlog.1\n@@ -13,7 +13,8 @@ git\\-shortlog \\- Summarize 'git log' output\n .sp\n .nf\n git\\-log \\-\\-pretty=short | \\fIgit\\-shortlog\\fR [\\-h] [\\-n] [\\-s] [\\-e]\n-git\\-shortlog [\\-n|\\-\\-numbered] [\\-s|\\-\\-summary] [\\-e|\\-\\-email] [<committish>\\&...]\n+git\\-shortlog [\\-n|\\-\\-numbered] [\\-s|\\-\\-summary] [\\-e|\\-\\-email] [\\-w]\n+             [<committish>\\&...]\n .fi\n .SH \"DESCRIPTION\"\n Summarizes \\fIgit log\\fR output in a format suitable for inclusion in release announcements. Each commit will be grouped by author and the first line of the commit message will be shown.\n@@ -32,6 +33,9 @@ Suppress commit description and provide a commit count summary only.\n .TP\n \\-e, \\-\\-email\n Show the email address of each author.\n+.TP\n+\\-w[<width>[,<indent1>[,<indent2>]]]\n+Wrap printed output.\n .SH \"FILES\"\n If the file .mailmap exists, it will be used for mapping author email addresses to a real author name. One mapping per line, first the author name followed by the email address enclosed by \\fI<\\fR and \\fI>\\fR. Use hash \\fI#\\fR for comments. Example:\n .sp\ndiff --git a/builtin-shortlog.c b/builtin-shortlog.c\nindex bd795b1..e6a2865 100644\n--- a/builtin-shortlog.c\n+++ b/builtin-shortlog.c\n@@ -9,7 +9,7 @@\n #include \"shortlog.h\"\n \n static const char shortlog_usage[] =\n-\"git-shortlog [-n] [-s] [-e] [<commit-id>... ]\";\n+\"git-shortlog [-n] [-s] [-e] [-w] [<commit-id>... ]\";\n \n static int compare_by_number(const void *a1, const void *a2)\n {\n\n\n\n"},{"id":"74234","messageId":"7v1w5ahf7e.fsf@gitster.siamese.dyndns.org","threadId":"13076","inReplyTo":"E874634E-9746-4916-81F3-433C2A71BDC7@nocrew.org","subject":"[PATCH] Document -w option to shortlog","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2008-04-12T22:37:57Z","receivedAt":"2008-04-12T22:37:57Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Noticed by Fredrik Noring.\n\nSigned-off-by: Junio C Hamano <gitster@pobox.com>\n---\n Documentation/git-shortlog.txt |   10 ++++++++--\n builtin-shortlog.c             |    2 +-\n 2 files changed, 9 insertions(+), 3 deletions(-)\n\ndiff --git a/Documentation/git-shortlog.txt b/Documentation/git-shortlog.txt\nindex c775257..d7cb4c0 100644\n--- a/Documentation/git-shortlog.txt\n+++ b/Documentation/git-shortlog.txt\n@@ -8,8 +8,8 @@ git-shortlog - Summarize 'git log' output\n SYNOPSIS\n --------\n [verse]\n-git-log --pretty=short | 'git-shortlog' [-h] [-n] [-s] [-e]\n-git-shortlog [-n|--numbered] [-s|--summary] [-e|--email] [<committish>...]\n+git-log --pretty=short | 'git-shortlog' [-h] [-n] [-s] [-e] [-w]\n+git-shortlog [-n|--numbered] [-s|--summary] [-e|--email] [-w[<width>[,<indent1>[,<indent2>]]]] [<committish>...]\n \n DESCRIPTION\n -----------\n@@ -35,6 +35,12 @@ OPTIONS\n -e, \\--email::\n \tShow the email address of each author.\n \n+-w[<width>[,<indent1>[,<indent2>]]]::\n+\tLinewrap the output by wrapping each line at `width`.  The first\n+\tline of each entry is indented by `indent1` spaces, and the second\n+\tand subsequent lines are indented by `indent2` spaces. `width`,\n+\t`indent1`, and `indent2` default to 76, 6 and 9 respectively.\n+\n FILES\n -----\n \ndiff --git a/builtin-shortlog.c b/builtin-shortlog.c\nindex f08095b..01cfd7b 100644\n--- a/builtin-shortlog.c\n+++ b/builtin-shortlog.c\n@@ -8,7 +8,7 @@\n #include \"mailmap.h\"\n \n static const char shortlog_usage[] =\n-\"git-shortlog [-n] [-s] [-e] [<commit-id>... ]\";\n+\"git-shortlog [-n] [-s] [-e] [-w] [<commit-id>... ]\";\n \n static char *common_repo_prefix;\n static int email;\n"}]}