Skip to content

Commit 55ef8a4

Browse files
committed
Document -w option to shortlog
Noticed by Fredrik Noring. Signed-off-by: Junio C Hamano <[email protected]>
1 parent a179a30 commit 55ef8a4

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Documentation/git-shortlog.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ git-shortlog - Summarize 'git log' output
88
SYNOPSIS
99
--------
1010
[verse]
11-
git-log --pretty=short | 'git-shortlog' [-h] [-n] [-s] [-e]
12-
git-shortlog [-n|--numbered] [-s|--summary] [-e|--email] [<committish>...]
11+
git-log --pretty=short | 'git-shortlog' [-h] [-n] [-s] [-e] [-w]
12+
git-shortlog [-n|--numbered] [-s|--summary] [-e|--email] [-w[<width>[,<indent1>[,<indent2>]]]] [<committish>...]
1313

1414
DESCRIPTION
1515
-----------
@@ -35,6 +35,12 @@ OPTIONS
3535
-e, \--email::
3636
Show the email address of each author.
3737

38+
-w[<width>[,<indent1>[,<indent2>]]]::
39+
Linewrap the output by wrapping each line at `width`. The first
40+
line of each entry is indented by `indent1` spaces, and the second
41+
and subsequent lines are indented by `indent2` spaces. `width`,
42+
`indent1`, and `indent2` default to 76, 6 and 9 respectively.
43+
3844
FILES
3945
-----
4046

builtin-shortlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include "mailmap.h"
99

1010
static const char shortlog_usage[] =
11-
"git-shortlog [-n] [-s] [-e] [<commit-id>... ]";
11+
"git-shortlog [-n] [-s] [-e] [-w] [<commit-id>... ]";
1212

1313
static char *common_repo_prefix;
1414
static int email;

0 commit comments

Comments
 (0)