Skip to content

Commit 75609a0

Browse files
jaysoffiangitster
authored andcommitted
git-ls-files.txt: clarify -x/--exclude option
Since b5227d8, -x/--exclude does not apply to cached files. This is easy to miss unless you read the discussion in the EXCLUDE PATTERNS section. Clarify that the option applies to untracked files and direct the reader to EXCLUDE PATTERNS. Signed-off-by: Jay Soffian <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 500348a commit 75609a0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/git-ls-files.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ OPTIONS
7979

8080
-x <pattern>::
8181
--exclude=<pattern>::
82-
Skips files matching pattern.
83-
Note that pattern is a shell wildcard pattern.
82+
Skips untracked files matching pattern.
83+
Note that pattern is a shell wildcard pattern. See EXCLUDE PATTERNS
84+
below for more information.
8485

8586
-X <file>::
8687
--exclude-from=<file>::

0 commit comments

Comments
 (0)