Skip to content

Commit 434a6db

Browse files
Nicolas Sebrechtgitster
authored andcommitted
add documentation for mailinfo.scissors and '--no-scissors'
Signed-off-by: Nicolas Sebrecht <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e019961 commit 434a6db

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

Documentation/git-am.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ SYNOPSIS
1313
[--3way] [--interactive] [--committer-date-is-author-date]
1414
[--ignore-date] [--ignore-space-change | --ignore-whitespace]
1515
[--whitespace=<option>] [-C<n>] [-p<n>] [--directory=<dir>]
16-
[--reject] [-q | --quiet] [--scissors]
16+
[--reject] [-q | --quiet] [--scissors | --no-scissors]
1717
[<mbox> | <Maildir>...]
1818
'git am' (--skip | --resolved | --abort)
1919

@@ -44,6 +44,9 @@ OPTIONS
4444
Remove everything in body before a scissors line (see
4545
linkgit:git-mailinfo[1]).
4646

47+
---no-scissors::
48+
Ignore scissors lines (see linkgit:git-mailinfo[1]).
49+
4750
-q::
4851
--quiet::
4952
Be quiet. Only print error messages.

Documentation/git-mailinfo.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ This is useful if you want to begin your message in a discussion thread
6262
with comments and suggestions on the message you are responding to, and to
6363
conclude it with a patch submission, separating the discussion and the
6464
beginning of the proposed commit log message with a scissors line.
65+
+
66+
This can enabled by default with the configuration option mailinfo.scissors.
67+
68+
--no-scissors::
69+
Ignore scissors lines. Useful for overriding mailinfo.scissors settings.
6570

6671
<msg>::
6772
The commit log message extracted from e-mail, usually

builtin-mailinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ static int git_mailinfo_config(const char *var, const char *value, void *unused)
10041004
}
10051005

10061006
static const char mailinfo_usage[] =
1007-
"git mailinfo [-k] [-u | --encoding=<encoding> | -n] [--scissors] msg patch < mail >info";
1007+
"git mailinfo [-k] [-u | --encoding=<encoding> | -n] [--scissors | --no-scissors] msg patch < mail >info";
10081008

10091009
int cmd_mailinfo(int argc, const char **argv, const char *prefix)
10101010
{

0 commit comments

Comments
 (0)