From: Junio C Hamano Date: Thu, 10 Jul 2008 02:30:50 +0000 (+0000) Subject: Autogenerated HTML docs for v1.5.6.2-291-g7eef3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=208beb7160e9d42ed3938d959525e6d89c642e39;p=git.git Autogenerated HTML docs for v1.5.6.2-291-g7eef3 --- diff --git a/git-apply.html b/git-apply.html index 13ba3221b..12bdbc497 100644 --- a/git-apply.html +++ b/git-apply.html @@ -326,7 +326,7 @@ git-apply(1) Manual Page [--allow-binary-replacement | --binary] [--reject] [-z] [-pNUM] [-CNUM] [--inaccurate-eof] [--recount] [--cached] [--whitespace=<nowarn|warn|fix|error|error-all>] - [--exclude=PATH] [--verbose] [<patch>…] + [--exclude=PATH] [--directory=<root>] [--verbose] [<patch>…]

DESCRIPTION

@@ -628,6 +628,18 @@ behavior:

adjusting the hunk headers appropriately).

+
+--directory=<root> +
+
+

+ Prepend <root> to all filenames. If a "-p" argument was passed, too, + it is applied before prepending the new root. +

+

For example, a patch that talks about updating a/git-gui.sh to b/git-gui.sh +can be applied to the file in the working tree modules/git-gui/git-gui.sh by +running git apply --directory=modules/git-gui.

+

Configuration

@@ -671,7 +683,7 @@ subdirectory is checked and (if possible) updated.

diff --git a/git-apply.txt b/git-apply.txt index e9f724b2f..feb51f124 100644 --- a/git-apply.txt +++ b/git-apply.txt @@ -14,7 +14,7 @@ SYNOPSIS [--allow-binary-replacement | --binary] [--reject] [-z] [-pNUM] [-CNUM] [--inaccurate-eof] [--recount] [--cached] [--whitespace=] - [--exclude=PATH] [--verbose] [...] + [--exclude=PATH] [--directory=] [--verbose] [...] DESCRIPTION ----------- @@ -182,6 +182,14 @@ behavior: by inspecting the patch (e.g. after editing the patch without adjusting the hunk headers appropriately). +--directory=:: + Prepend to all filenames. If a "-p" argument was passed, too, + it is applied before prepending the new root. ++ +For example, a patch that talks about updating `a/git-gui.sh` to `b/git-gui.sh` +can be applied to the file in the working tree `modules/git-gui/git-gui.sh` by +running `git apply --directory=modules/git-gui`. + Configuration -------------