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/diff-options.txt | |
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/diff-options.txt')
-rw-r--r-- | Documentation/diff-options.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt index aaaff0d46f..0e9456957e 100644 --- a/Documentation/diff-options.txt +++ b/Documentation/diff-options.txt @@ -865,8 +865,9 @@ endif::git-format-patch[] --default-prefix:: Use the default source and destination prefixes ("a/" and "b/"). - This is usually the default already, but may be used to override - config such as `diff.noprefix`. + This overrides configuration variables such as `diff.noprefix`, + `diff.srcPrefix`, `diff.dstPrefix`, and `diff.mnemonicPrefix` + (see `git-config`(1)). --line-prefix=<prefix>:: Prepend an additional prefix to every line of output. |