Skip to content

Commit 47481ff

Browse files
asheidukgitster
authored andcommitted
doc: clarify ignore rules for git ls-files
Explain that `git ls-files --ignored` requires at least one of the `--exclude*` options to do its job. Signed-off-by: Andreas Heiduk <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e78e0f7 commit 47481ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/git-ls-files.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ OPTIONS
5353
Show only ignored files in the output. When showing files in the
5454
index, print only those matched by an exclude pattern. When
5555
showing "other" files, show only those matched by an exclude
56-
pattern.
56+
pattern. Standard ignore rules are not automatically activated,
57+
therefore at least one of the `--exclude*` options is required.
5758

5859
-s::
5960
--stage::

0 commit comments

Comments
 (0)