Skip to contentSkip to conversation

config.txt: fix placement of diff.noprefix

PATCH In review Mark Lodato 3 participants 3 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 config.txt: fix placement of diff.noprefix

In git-config(1), diff.noprefix was placed in between diff.mnemonicprefix and the list of mnemonic prefixes, which is obviously incorrect and very confusing to readers. Now, it is located after the end of the explanation of mnemonicprefix, which makes much more sense.

---
 Documentation/config.txt |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
Documentation/config.txt +3 -2
index d294dd6..d82c0da 100644
@@ -813,8 +813,6 @@ diff.mnemonicprefix::
 	standard "a/" and "b/" depending on what is being compared.  When
 	this configuration is in effect, reverse diff output also swaps
 	the order of the prefixes:
-diff.noprefix::
-	If set, 'git diff' does not show any source or destination prefix.
 `git diff`;;
 	compares the (i)ndex and the (w)ork tree;
 `git diff HEAD`;;
@@ -826,6 +824,9 @@ diff.noprefix::
 `git diff --no-index a b`;;
 	compares two non-git things (1) and (2).
 
+diff.noprefix::
+	If set, 'git diff' does not show any source or destination prefix.
+
 diff.renameLimit::
 	The number of files to consider when performing the copy/rename
 	detection; equivalent to the 'git diff' option '-l'.
Signature · 1 line
1.7.2.3
#1 lore raw
Quoted 25 lines · Mark Lodato

In git-config(1), diff.noprefix was placed in between diff.mnemonicprefix and the list of mnemonic prefixes, which is obviously incorrect and very confusing to readers. Now, it is located after the end of the explanation of mnemonicprefix, which makes much more sense.

---
 Documentation/config.txt |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
Documentation/config.txt +0 -2
index d294dd6..d82c0da 100644
@@ -813,8 +813,6 @@ diff.mnemonicprefix::
 	standard "a/" and "b/" depending on what is being compared.  When
 	this configuration is in effect, reverse diff output also swaps
 	the order of the prefixes:
-diff.noprefix::
-	If set, 'git diff' does not show any source or destination prefix.
 `git diff`;;
 	compares the (i)ndex and the (w)ork tree;
 `git diff HEAD`;;

Documentation/config.txt diff.noprefix:: · line 832

Quoted 9 lines
Documentation/config.txt +3 -0
@@ -826,6 +824,9 @@ diff.noprefix::
 `git diff --no-index a b`;;
 	compares two non-git things (1) and (2).
 
+diff.noprefix::
+	If set, 'git diff' does not show any source or destination prefix.
+
 diff.renameLimit::
 	The number of files to consider when performing the copy/rename
 	detection; equivalent to the 'git diff' option '-l'.

Good eyes, thanks. How did that happen I wonder...

#2 lore raw

Good find. Apologies, looks like that was an issue with the original patch.

Quoted 39 lines · Junio C Hamano
Quoted 31 lines · Mark Lodato

In git-config(1), diff.noprefix was placed in between diff.mnemonicprefix and the list of mnemonic prefixes, which is obviously incorrect and very confusing to readers.  Now, it is located after the end of the explanation of mnemonicprefix, which makes much more sense.

---
 Documentation/config.txt |    5 +++--

 1 files changed, 3 insertions(+), 2 deletions(-)
Documentation/config.txt +0 -0
index d294dd6..d82c0da 100644
@@ -813,8 +813,6 @@ diff.mnemonicprefix::

      standard "a/" and "b/" depending on what is being compared.  When this configuration is in effect, reverse diff output also swaps the order of the prefixes:
-diff.noprefix::
-     If set, 'git diff' does not show any source or destination prefix. git diff;;
      compares the (i)ndex and the (w)ork tree;
 git diff HEAD;;

Documentation/config.txt +0 -0
@@ -826,6 +824,9 @@ diff.noprefix::
  `git diff --no-index a b`;;

      compares two non-git things (1) and (2).

Documentation/config.txt +3 -0
+diff.noprefix::
+     If set, 'git diff' does not show any source or destination prefix.
+
Quoted 3 lines

 diff.renameLimit::
      The number of files to consider when performing the copy/rename detection; equivalent to the 'git diff' option '-l'.

Good eyes, thanks.  How did that happen I wonder...