Teach "git apply" to prepend a prefix with "--root=<root>"
commitc4730f35cc6507bc117a08885d88668fe02b1a7d
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Mon, 30 Jun 2008 23:44:47 +0000 (1 00:44 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Jul 2008 01:04:28 +0000 (1 18:04 -0700)
treeb1383c7eada1a147d2bcd6b2db08da8c3a763520
parent66037991d3fd2ac7e699c7bd21d939b9e397f6a4
Teach "git apply" to prepend a prefix with "--root=<root>"

With "git apply --root=<root>", all file names in the patch are prepended
with <root>.  If a "-p" value was given, the paths are stripped _before_
prepending <root>.

Wished for by HPA.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-apply.txt
builtin-apply.c
t/t4128-apply-root.sh [new file with mode: 0755]