]> git.ipfire.org Git - thirdparty/git.git/blobdiff - Documentation/git-apply.txt
apply: clarify "-p" documentation
[thirdparty/git.git] / Documentation / git-apply.txt
index 4ebc3d32719dfefa988d34b41871f0e9fb969471..c993fbf714d6d531105dfa0d8a9f024304bc0164 100644 (file)
@@ -113,8 +113,10 @@ explained for the configuration variable `core.quotePath` (see
 linkgit:git-config[1]).
 
 -p<n>::
-       Remove <n> leading slashes from traditional diff paths. The
-       default is 1.
+       Remove <n> 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<n>::
        Ensure at least <n> lines of surrounding context match before