| author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
| Mon, 30 Jun 2008 23:44:47 +0000 (00:44 +0100) | ||
| committer | Junio C Hamano <gitster@pobox.com> | |
| Wed, 2 Jul 2008 01:04:28 +0000 (18:04 -0700) | ||
| commit | c4730f35cc6507bc117a08885d88668fe02b1a7d | |
| tree | b1383c7eada1a147d2bcd6b2db08da8c3a763520 | tree | snapshot |
| parent | 66037991d3fd2ac7e699c7bd21d939b9e397f6a4 | commit | diff |
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>
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 | diff | blob | history | |
| builtin-apply.c | diff | blob | history | |
| t/t4128-apply-root.sh | [new file with mode: 0755] | blob |