Skip to content

Commit d86679f

Browse files
committed
Merge branch 'mm/am-c-doc' into maint
The configuration variable 'mailinfo.scissors' was hard to discover in the documentation. * mm/am-c-doc: Documentation/git-am.txt: mention mailinfo.scissors config variable Documentation/config.txt: document mailinfo.scissors
2 parents 2e7ca27 + afb5de7 commit d86679f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Documentation/config.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,6 +1739,13 @@ log.mailmap::
17391739
If true, makes linkgit:git-log[1], linkgit:git-show[1], and
17401740
linkgit:git-whatchanged[1] assume `--use-mailmap`.
17411741

1742+
mailinfo.scissors::
1743+
If true, makes linkgit:git-mailinfo[1] (and therefore
1744+
linkgit:git-am[1]) act by default as if the --scissors option
1745+
was provided on the command-line. When active, this features
1746+
removes everything from the message body before a scissors
1747+
line (i.e. consisting mainly of ">8", "8<" and "-").
1748+
17421749
mailmap.file::
17431750
The location of an augmenting mailmap file. The default
17441751
mailmap, located in the root of the repository, is loaded

Documentation/git-am.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ OPTIONS
5252
-c::
5353
--scissors::
5454
Remove everything in body before a scissors line (see
55-
linkgit:git-mailinfo[1]).
55+
linkgit:git-mailinfo[1]). Can be activated by default using
56+
the `mailinfo.scissors` configuration variable.
5657

5758
--no-scissors::
5859
Ignore scissors lines (see linkgit:git-mailinfo[1]).

0 commit comments

Comments
 (0)