From: Jeff King Date: Thu, 10 May 2018 14:29:24 +0000 (-0400) Subject: apply: clarify "-p" documentation X-Git-Tag: v2.18.0-rc0~68^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee930754d8f61ffa21535b83c81b3d48cd222e0a;p=thirdparty%2Fgit.git apply: clarify "-p" documentation We're not really removing slashes, but slash-separated path components. Let's make that more clear. Reported-by: kelly elton Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-apply.txt b/Documentation/git-apply.txt index 4ebc3d3271..c993fbf714 100644 --- a/Documentation/git-apply.txt +++ b/Documentation/git-apply.txt @@ -113,8 +113,10 @@ explained for the configuration variable `core.quotePath` (see linkgit:git-config[1]). -p:: - Remove leading slashes from traditional diff paths. The - default is 1. + Remove leading path components (separated by slashes) from + traditional diff paths. E.g., with `-p2`, a patch against + `a/dir/file` will be applied directly to `file`. The default is + 1. -C:: Ensure at least lines of surrounding context match before