git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] shortlog wrap usage

From
FNFredrik Noring <noring@nocrew.org>
Date
Apr 12, 2008, 13:05 UTC
Message-ID
<E874634E-9746-4916-81F3-433C2A71BDC7@nocrew.org>
Hi all,

Found this hidden "-w" option to the shortlog command, and thought it might be good to have it documented.

  builtin-shortlog.c  |    2 +-
  man1/git-shortlog.1 |    6 +++++-
  2 files changed, 6 insertions(+), 2 deletions(-)

Thanks, Fredrik

diff --git a/man1/git-shortlog.1 b/man1/git-shortlog.1
index 306c821..3602ad9 100644
--- a/man1/git-shortlog.1
+++ b/man1/git-shortlog.1
@@ -13,7 +13,8 @@ git\-shortlog \- Summarize 'git log' output
 .sp
 .nf
 git\-log \-\-pretty=short | \fIgit\-shortlog\fR [\-h] [\-n] [\-s] [\-e]
-git\-shortlog [\-n|\-\-numbered] [\-s|\-\-summary] [\-e|\-\-email] [<committish>\&...]
+git\-shortlog [\-n|\-\-numbered] [\-s|\-\-summary] [\-e|\-\-email] [\-w]
+             [<committish>\&...]
 .fi
 .SH "DESCRIPTION"
 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.
@@ -32,6 +33,9 @@ Suppress commit description and provide a commit count summary only.
 .TP
 \-e, \-\-email
 Show the email address of each author.
+.TP
+\-w[<width>[,<indent1>[,<indent2>]]]
+Wrap printed output.
 .SH "FILES"
 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:
 .sp
diff --git a/builtin-shortlog.c b/builtin-shortlog.c
index bd795b1..e6a2865 100644
--- a/builtin-shortlog.c
+++ b/builtin-shortlog.c
@@ -9,7 +9,7 @@
 #include "shortlog.h"
 
 static const char shortlog_usage[] =
-"git-shortlog [-n] [-s] [-e] [<commit-id>... ]";
+"git-shortlog [-n] [-s] [-e] [-w] [<commit-id>... ]";
 
 static int compare_by_number(const void *a1, const void *a2)
 {
Next: Junio C Hamano
Message 1 of 2 in “shortlog wrap usage”
  1. shortlog wrap usageFredrik Noring, Apr 12, 2008
  2. Document -w option to shortlogJunio C Hamano, Apr 12, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.