From 208beb7160e9d42ed3938d959525e6d89c642e39 Mon Sep 17 00:00:00 2001
From: Junio C Hamano
Date: Thu, 10 Jul 2008 02:30:50 +0000
Subject: [PATCH] Autogenerated HTML docs for v1.5.6.2-291-g7eef3
---
git-apply.html | 16 ++++++++++++++--
git-apply.txt | 10 +++++++++-
2 files changed, 23 insertions(+), 3 deletions(-)
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.