Skip to content

Commit 16a86d4

Browse files
pcloudsgitster
authored andcommitted
git-apply.txt: mention the behavior inside a subdir
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d725fbd commit 16a86d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Documentation/git-apply.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ SYNOPSIS
2121
DESCRIPTION
2222
-----------
2323
Reads the supplied diff output (i.e. "a patch") and applies it to files.
24+
When running from a subdirectory in a repository, patched paths
25+
outside the directory are ignored.
2426
With the `--index` option the patch is also applied to the index, and
2527
with the `--cached` option the patch is only applied to the index.
2628
Without these options, the command applies the patch only to files,

0 commit comments

Comments
 (0)