]> git.ipfire.org Git - thirdparty/git.git/commit - diff.c
diff: add --default-prefix option
authorJeff King <peff@peff.net>
Thu, 9 Mar 2023 06:09:54 +0000 (01:09 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 Mar 2023 16:32:21 +0000 (08:32 -0800)
commitb39a5697296659c344cd0a286b51303fd5375fab
treefae2ab944498606552c29e45339ec259f2b4f769
parent7c03d0db8807d303540297432455adfa1c45b05e
diff: add --default-prefix option

You can change the output of prefixes with diff.noprefix and
diff.mnemonicprefix, but there's no easy way to override them from the
command-line. We do have "--no-prefix", but there's no way to get back
to the default prefix. So let's add an option to do that.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/diff-options.txt
diff.c
t/t4013-diff-various.sh