Skip to content

Commit

Permalink
Document -w option to shortlog
Browse files Browse the repository at this point in the history
Noticed by Fredrik Noring.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Apr 12, 2008
1 parent a179a30 commit 55ef8a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions Documentation/git-shortlog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ git-shortlog - Summarize 'git log' output
SYNOPSIS
--------
[verse]
git-log --pretty=short | 'git-shortlog' [-h] [-n] [-s] [-e]
git-shortlog [-n|--numbered] [-s|--summary] [-e|--email] [<committish>...]
git-log --pretty=short | 'git-shortlog' [-h] [-n] [-s] [-e] [-w]
git-shortlog [-n|--numbered] [-s|--summary] [-e|--email] [-w[<width>[,<indent1>[,<indent2>]]]] [<committish>...]

DESCRIPTION
-----------
Expand All @@ -35,6 +35,12 @@ OPTIONS
-e, \--email::
Show the email address of each author.

-w[<width>[,<indent1>[,<indent2>]]]::
Linewrap the output by wrapping each line at `width`. The first
line of each entry is indented by `indent1` spaces, and the second
and subsequent lines are indented by `indent2` spaces. `width`,
`indent1`, and `indent2` default to 76, 6 and 9 respectively.

FILES
-----

Expand Down
2 changes: 1 addition & 1 deletion builtin-shortlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "mailmap.h"

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

static char *common_repo_prefix;
static int email;
Expand Down

0 comments on commit 55ef8a4

Please sign in to comment.