Code

Teach diff machinery to display other prefixes than "a/" and "b/"
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Tue, 18 Dec 2007 19:32:14 +0000 (19:32 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Dec 2007 09:10:39 +0000 (01:10 -0800)
commiteab9a40b6dd5c1c571b1deb264133db47bb4794d
tree792cbe7fec4bf5018d85bbef4d98d2b24db5fd96
parent74f6b03c5c8fceef416de9f9a18e5d64712b6d96
Teach diff machinery to display other prefixes than "a/" and "b/"

With the new options "--src-prefix=<prefix>", "--dst-prefix=<prefix>"
and "--no-prefix", you can now control the path prefixes of the diff
machinery.  These used to by hardwired to "a/" for the source prefix
and "b/" for the destination prefix.

Initial patch by Pascal Obry.  Sane option names suggested by Linus.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/diff-options.txt
diff.c
diff.h