Skip to content

Commit 356a32a

Browse files
sbeyergitster
authored andcommitted
git-am/git-mailsplit: correct synopsis for reading from stdin
Invoking git-am or git-mailsplit without mbox or Maildir results in reading an mbox from stdin. Mention this in the synopsis and usage strings. Signed-off-by: Stephan Beyer <s-beyer@gmx.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 447d0cc commit 356a32a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Documentation/git-am.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ SYNOPSIS
1212
'git am' [--signoff] [--keep] [--utf8 | --no-utf8]
1313
[--3way] [--interactive] [--binary]
1414
[--whitespace=<option>] [-C<n>] [-p<n>]
15-
<mbox>|<Maildir>...
16-
'git am' [--skip | --resolved]
15+
[<mbox> | <Maildir>...]
16+
'git am' (--skip | --resolved)
1717

1818
DESCRIPTION
1919
-----------

builtin-mailsplit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "path-list.h"
1010

1111
static const char git_mailsplit_usage[] =
12-
"git-mailsplit [-d<prec>] [-f<n>] [-b] -o<directory> <mbox>|<Maildir>...";
12+
"git-mailsplit [-d<prec>] [-f<n>] [-b] -o<directory> [<mbox>|<Maildir>...]";
1313

1414
static int is_from_line(const char *line, int len)
1515
{

git-am.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
SUBDIRECTORY_OK=Yes
66
OPTIONS_KEEPDASHDASH=
77
OPTIONS_SPEC="\
8-
git-am [options] <mbox>|<Maildir>...
8+
git-am [options] [<mbox>|<Maildir>...]
99
git-am [options] --resolved
1010
git-am [options] --skip
1111
--

0 commit comments

Comments
 (0)