diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2024-03-15 11:03:10 +1000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-03-15 10:04:45 -0700 |
commit | 7fdc2656331f051a673a61444051cde58044ceeb (patch) | |
tree | c9435a5630c8fcdf408a64e4c465ace41c8d4790 /Documentation/config | |
parent | 4f9b731bdeccffa1b13e5edf4bc0428b8d49704e (diff) | |
download | git-7fdc2656331f051a673a61444051cde58044ceeb.tar.gz |
diff: add diff.srcPrefix and diff.dstPrefix configuration variables
Allow the default prefixes "a/" and "b/" to be tweaked by the
diff.srcPrefix and diff.dstPrefix configuration variables.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/config')
-rw-r--r-- | Documentation/config/diff.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/config/diff.txt b/Documentation/config/diff.txt index 6c7e09a1ef..fea89291c6 100644 --- a/Documentation/config/diff.txt +++ b/Documentation/config/diff.txt @@ -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. |