git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Documentation/config.txt: document mailinfo.scissor
@ 2015-02-20 10:09 Matthieu Moy
  2015-02-20 10:09 ` [PATCH 2/2] Documentation/git-am.txt: mention mailinfo.scissor config variable Matthieu Moy
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Matthieu Moy @ 2015-02-20 10:09 UTC (permalink / raw)
  To: gitster; +Cc: git, Jeff King, Matthieu Moy

The variale was documented in git-mailinfo.txt, but not in config.txt.
The detailed documentation is still the one of --scissors in
git-mailinfo.txt, but we give enough information here to let the user
understand what it is about, and to make it easy to find it (e.g.
searching ">8" and "8<" finds it).

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
---
 Documentation/config.txt | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/config.txt b/Documentation/config.txt
index ae6791d..4a2a078 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -1740,6 +1740,13 @@ log.mailmap::
 	If true, makes linkgit:git-log[1], linkgit:git-show[1], and
 	linkgit:git-whatchanged[1] assume `--use-mailmap`.
 
+mailinfo.scissor::
+	If true, makes linkgit:git-mailinfo[1] (and therefore
+	linkgit:git-am[1]) act by default as if the --scissors option
+	was provided on the command-line. When active, this features
+	removes everything from the message body before a scissors
+	line (i.e. consisting mainly of ">8", "8<" and "-").
+
 mailmap.file::
 	The location of an augmenting mailmap file. The default
 	mailmap, located in the root of the repository, is loaded
-- 
2.3.0.157.g79e124b

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 2/2] Documentation/git-am.txt: mention mailinfo.scissor config variable
  2015-02-20 10:09 [PATCH 1/2] Documentation/config.txt: document mailinfo.scissor Matthieu Moy
@ 2015-02-20 10:09 ` Matthieu Moy
  2015-02-20 10:19   ` Jeff King
  2015-02-20 10:17 ` [PATCH 1/2] Documentation/config.txt: document mailinfo.scissor Jeff King
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 9+ messages in thread
From: Matthieu Moy @ 2015-02-20 10:09 UTC (permalink / raw)
  To: gitster; +Cc: git, Jeff King, Matthieu Moy

It was already documented, but the user had to follow the link to
git-mailinfo.txt to find it.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
---
This one may be more controversial. I think it makes sense to apply
it, but I won't fight for it if you think it adds too much noise to
the doc.

 Documentation/git-am.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/git-am.txt b/Documentation/git-am.txt
index f4eea28..1128570 100644
--- a/Documentation/git-am.txt
+++ b/Documentation/git-am.txt
@@ -52,7 +52,8 @@ OPTIONS
 -c::
 --scissors::
 	Remove everything in body before a scissors line (see
-	linkgit:git-mailinfo[1]).
+	linkgit:git-mailinfo[1]). Can be activated by default using
+	the `mailinfo.scissor` configuration variable.
 
 --no-scissors::
 	Ignore scissors lines (see linkgit:git-mailinfo[1]).
-- 
2.3.0.157.g79e124b

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH 1/2] Documentation/config.txt: document mailinfo.scissor
  2015-02-20 10:09 [PATCH 1/2] Documentation/config.txt: document mailinfo.scissor Matthieu Moy
  2015-02-20 10:09 ` [PATCH 2/2] Documentation/git-am.txt: mention mailinfo.scissor config variable Matthieu Moy
@ 2015-02-20 10:17 ` Jeff King
  2015-02-20 10:29 ` [PATCH v2 " Matthieu Moy
  2015-02-20 19:32 ` [PATCH v3 1/2] Documentation/config.txt: document mailinfo.scissors Matthieu Moy
  3 siblings, 0 replies; 9+ messages in thread
From: Jeff King @ 2015-02-20 10:17 UTC (permalink / raw)
  To: Matthieu Moy; +Cc: gitster, git

On Fri, Feb 20, 2015 at 11:09:06AM +0100, Matthieu Moy wrote:

> The variale was documented in git-mailinfo.txt, but not in config.txt.

Missing 'b' in variable.

> +mailinfo.scissor::

s/scissor/&s/

-Peff

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 2/2] Documentation/git-am.txt: mention mailinfo.scissor config variable
  2015-02-20 10:09 ` [PATCH 2/2] Documentation/git-am.txt: mention mailinfo.scissor config variable Matthieu Moy
@ 2015-02-20 10:19   ` Jeff King
  0 siblings, 0 replies; 9+ messages in thread
From: Jeff King @ 2015-02-20 10:19 UTC (permalink / raw)
  To: Matthieu Moy; +Cc: gitster, git

On Fri, Feb 20, 2015 at 11:09:07AM +0100, Matthieu Moy wrote:

> It was already documented, but the user had to follow the link to
> git-mailinfo.txt to find it.
> 
> Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
> ---
> This one may be more controversial. I think it makes sense to apply
> it, but I won't fight for it if you think it adds too much noise to
> the doc.

I recently looked up the option to reply to your other mail, knowing it
existed but forgetting the exact name. It took me several minutes to
find it. I'm in favor of this.

>  --scissors::
>  	Remove everything in body before a scissors line (see
> -	linkgit:git-mailinfo[1]).
> +	linkgit:git-mailinfo[1]). Can be activated by default using
> +	the `mailinfo.scissor` configuration variable.

As in the other patch, "scissors", with a trailing "s".

-Peff

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH v2 1/2] Documentation/config.txt: document mailinfo.scissor
  2015-02-20 10:09 [PATCH 1/2] Documentation/config.txt: document mailinfo.scissor Matthieu Moy
  2015-02-20 10:09 ` [PATCH 2/2] Documentation/git-am.txt: mention mailinfo.scissor config variable Matthieu Moy
  2015-02-20 10:17 ` [PATCH 1/2] Documentation/config.txt: document mailinfo.scissor Jeff King
@ 2015-02-20 10:29 ` Matthieu Moy
  2015-02-20 10:29   ` [PATCH v2 2/2] Documentation/git-am.txt: mention mailinfo.scissors config variable Matthieu Moy
  2015-02-20 17:11   ` [PATCH v2 1/2] Documentation/config.txt: document mailinfo.scissor Eric Sunshine
  2015-02-20 19:32 ` [PATCH v3 1/2] Documentation/config.txt: document mailinfo.scissors Matthieu Moy
  3 siblings, 2 replies; 9+ messages in thread
From: Matthieu Moy @ 2015-02-20 10:29 UTC (permalink / raw)
  To: gitster; +Cc: git, Jeff King, Matthieu Moy

The variable was documented in git-mailinfo.txt, but not in config.txt.
The detailed documentation is still the one of --scissors in
git-mailinfo.txt, but we give enough information here to let the user
understand what it is about, and to make it easy to find it (e.g.
searching ">8" and "8<" finds it).

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
---
Changes since v1 for both patches : typos noted by Peff.

 Documentation/config.txt | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/config.txt b/Documentation/config.txt
index ae6791d..15f8695 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -1740,6 +1740,13 @@ log.mailmap::
 	If true, makes linkgit:git-log[1], linkgit:git-show[1], and
 	linkgit:git-whatchanged[1] assume `--use-mailmap`.
 
+mailinfo.scissors::
+	If true, makes linkgit:git-mailinfo[1] (and therefore
+	linkgit:git-am[1]) act by default as if the --scissors option
+	was provided on the command-line. When active, this features
+	removes everything from the message body before a scissors
+	line (i.e. consisting mainly of ">8", "8<" and "-").
+
 mailmap.file::
 	The location of an augmenting mailmap file. The default
 	mailmap, located in the root of the repository, is loaded
-- 
2.3.0.157.g79e124b

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v2 2/2] Documentation/git-am.txt: mention mailinfo.scissors config variable
  2015-02-20 10:29 ` [PATCH v2 " Matthieu Moy
@ 2015-02-20 10:29   ` Matthieu Moy
  2015-02-20 17:11   ` [PATCH v2 1/2] Documentation/config.txt: document mailinfo.scissor Eric Sunshine
  1 sibling, 0 replies; 9+ messages in thread
From: Matthieu Moy @ 2015-02-20 10:29 UTC (permalink / raw)
  To: gitster; +Cc: git, Jeff King, Matthieu Moy

It was already documented, but the user had to follow the link to
git-mailinfo.txt to find it.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
---
 Documentation/git-am.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/git-am.txt b/Documentation/git-am.txt
index f4eea28..0d8ba48 100644
--- a/Documentation/git-am.txt
+++ b/Documentation/git-am.txt
@@ -52,7 +52,8 @@ OPTIONS
 -c::
 --scissors::
 	Remove everything in body before a scissors line (see
-	linkgit:git-mailinfo[1]).
+	linkgit:git-mailinfo[1]). Can be activated by default using
+	the `mailinfo.scissors` configuration variable.
 
 --no-scissors::
 	Ignore scissors lines (see linkgit:git-mailinfo[1]).
-- 
2.3.0.157.g79e124b

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH v2 1/2] Documentation/config.txt: document mailinfo.scissor
  2015-02-20 10:29 ` [PATCH v2 " Matthieu Moy
  2015-02-20 10:29   ` [PATCH v2 2/2] Documentation/git-am.txt: mention mailinfo.scissors config variable Matthieu Moy
@ 2015-02-20 17:11   ` Eric Sunshine
  1 sibling, 0 replies; 9+ messages in thread
From: Eric Sunshine @ 2015-02-20 17:11 UTC (permalink / raw)
  To: Matthieu Moy; +Cc: Junio C Hamano, Git List, Jeff King

On Fri, Feb 20, 2015 at 5:29 AM, Matthieu Moy <Matthieu.Moy@imag.fr> wrote:
> Subject: Documentation/config.txt: document mailinfo.scissor
>
> The variable was documented in git-mailinfo.txt, but not in config.txt.
> The detailed documentation is still the one of --scissors in
> git-mailinfo.txt, but we give enough information here to let the user
> understand what it is about, and to make it easy to find it (e.g.
> searching ">8" and "8<" finds it).
>
> Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
> ---
> Changes since v1 for both patches : typos noted by Peff.

The same typo (s/scissor/scissors/) exists in the subjects.

>  Documentation/config.txt | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/Documentation/config.txt b/Documentation/config.txt
> index ae6791d..15f8695 100644
> --- a/Documentation/config.txt
> +++ b/Documentation/config.txt
> @@ -1740,6 +1740,13 @@ log.mailmap::
>         If true, makes linkgit:git-log[1], linkgit:git-show[1], and
>         linkgit:git-whatchanged[1] assume `--use-mailmap`.
>
> +mailinfo.scissors::
> +       If true, makes linkgit:git-mailinfo[1] (and therefore
> +       linkgit:git-am[1]) act by default as if the --scissors option
> +       was provided on the command-line. When active, this features
> +       removes everything from the message body before a scissors
> +       line (i.e. consisting mainly of ">8", "8<" and "-").
> +
>  mailmap.file::
>         The location of an augmenting mailmap file. The default
>         mailmap, located in the root of the repository, is loaded
> --
> 2.3.0.157.g79e124b

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH v3 1/2] Documentation/config.txt: document mailinfo.scissors
  2015-02-20 10:09 [PATCH 1/2] Documentation/config.txt: document mailinfo.scissor Matthieu Moy
                   ` (2 preceding siblings ...)
  2015-02-20 10:29 ` [PATCH v2 " Matthieu Moy
@ 2015-02-20 19:32 ` Matthieu Moy
  2015-02-20 19:32   ` [PATCH v3 2/2] Documentation/git-am.txt: mention mailinfo.scissors config variable Matthieu Moy
  3 siblings, 1 reply; 9+ messages in thread
From: Matthieu Moy @ 2015-02-20 19:32 UTC (permalink / raw)
  To: gitster; +Cc: git, Jeff King, Matthieu Moy

The variable was documented in git-mailinfo.txt, but not in config.txt.
The detailed documentation is still the one of --scissors in
git-mailinfo.txt, but we give enough information here to let the user
understand what it is about, and to make it easy to find it (e.g.
searching ">8" and "8<" finds it).

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
---
Hopefully, I'd have fixed all intances of my typo now :-\.

Sorry for the noise.

 Documentation/config.txt | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/config.txt b/Documentation/config.txt
index ae6791d..15f8695 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -1740,6 +1740,13 @@ log.mailmap::
 	If true, makes linkgit:git-log[1], linkgit:git-show[1], and
 	linkgit:git-whatchanged[1] assume `--use-mailmap`.
 
+mailinfo.scissors::
+	If true, makes linkgit:git-mailinfo[1] (and therefore
+	linkgit:git-am[1]) act by default as if the --scissors option
+	was provided on the command-line. When active, this features
+	removes everything from the message body before a scissors
+	line (i.e. consisting mainly of ">8", "8<" and "-").
+
 mailmap.file::
 	The location of an augmenting mailmap file. The default
 	mailmap, located in the root of the repository, is loaded
-- 
2.3.0.157.g79e124b

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v3 2/2] Documentation/git-am.txt: mention mailinfo.scissors config variable
  2015-02-20 19:32 ` [PATCH v3 1/2] Documentation/config.txt: document mailinfo.scissors Matthieu Moy
@ 2015-02-20 19:32   ` Matthieu Moy
  0 siblings, 0 replies; 9+ messages in thread
From: Matthieu Moy @ 2015-02-20 19:32 UTC (permalink / raw)
  To: gitster; +Cc: git, Jeff King, Matthieu Moy

It was already documented, but the user had to follow the link to
git-mailinfo.txt to find it.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
---
 Documentation/git-am.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/git-am.txt b/Documentation/git-am.txt
index f4eea28..0d8ba48 100644
--- a/Documentation/git-am.txt
+++ b/Documentation/git-am.txt
@@ -52,7 +52,8 @@ OPTIONS
 -c::
 --scissors::
 	Remove everything in body before a scissors line (see
-	linkgit:git-mailinfo[1]).
+	linkgit:git-mailinfo[1]). Can be activated by default using
+	the `mailinfo.scissors` configuration variable.
 
 --no-scissors::
 	Ignore scissors lines (see linkgit:git-mailinfo[1]).
-- 
2.3.0.157.g79e124b

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-02-20 19:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-20 10:09 [PATCH 1/2] Documentation/config.txt: document mailinfo.scissor Matthieu Moy
2015-02-20 10:09 ` [PATCH 2/2] Documentation/git-am.txt: mention mailinfo.scissor config variable Matthieu Moy
2015-02-20 10:19   ` Jeff King
2015-02-20 10:17 ` [PATCH 1/2] Documentation/config.txt: document mailinfo.scissor Jeff King
2015-02-20 10:29 ` [PATCH v2 " Matthieu Moy
2015-02-20 10:29   ` [PATCH v2 2/2] Documentation/git-am.txt: mention mailinfo.scissors config variable Matthieu Moy
2015-02-20 17:11   ` [PATCH v2 1/2] Documentation/config.txt: document mailinfo.scissor Eric Sunshine
2015-02-20 19:32 ` [PATCH v3 1/2] Documentation/config.txt: document mailinfo.scissors Matthieu Moy
2015-02-20 19:32   ` [PATCH v3 2/2] Documentation/git-am.txt: mention mailinfo.scissors config variable Matthieu Moy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).