]> git.ipfire.org Git - thirdparty/git.git/blobdiff - Documentation/config/diff.txt
diff: add diff.srcPrefix and diff.dstPrefix configuration variables
[thirdparty/git.git] / Documentation / config / diff.txt
index bd5ae0c3378adbd5661a202dc1f8fcfbf27ac4a1..fea89291c675136dc166195f7739bd635fd6b50f 100644 (file)
@@ -111,6 +111,12 @@ diff.mnemonicPrefix::
 diff.noprefix::
        If set, 'git diff' does not show any source or destination prefix.
 
+diff.srcPrefix::
+       If set, 'git diff' uses this source prefix. Defaults to "a/".
+
+diff.dstPrefix::
+       If set, 'git diff' uses this destination prefix. Defaults to "b/".
+
 diff.relative::
        If set to 'true', 'git diff' does not show changes outside of the directory
        and show pathnames relative to the current directory.
@@ -223,5 +229,5 @@ diff.colorMoved::
 
 diff.colorMovedWS::
        When moved lines are colored using e.g. the `diff.colorMoved` setting,
-       this option controls the `<mode>` how spaces are treated
-       for details of valid modes see '--color-moved-ws' in linkgit:git-diff[1].
+       this option controls the `<mode>` how spaces are treated.
+       For details of valid modes see '--color-moved-ws' in linkgit:git-diff[1].