Skip to content

Commit e750951

Browse files
newrengitster
authored andcommitted
ls-files: guide folks to --exclude-standard over other --exclude* options
Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4173b80 commit e750951

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Documentation/git-ls-files.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ OPTIONS
119119

120120
--exclude-per-directory=<file>::
121121
Read additional exclude patterns that apply only to the
122-
directory and its subdirectories in <file>.
122+
directory and its subdirectories in <file>. Deprecated; use
123+
--exclude-standard instead.
123124

124125
--exclude-standard::
125126
Add the standard Git exclusions: .git/info/exclude, .gitignore
@@ -291,7 +292,9 @@ traversing the directory tree and finding files to show when the
291292
flags --others or --ignored are specified. linkgit:gitignore[5]
292293
specifies the format of exclude patterns.
293294

294-
These exclude patterns come from these places, in order:
295+
Generally, you should just use --exclude-standard, but for historical
296+
reasons the exclude patterns can be specified from the following
297+
places, in order:
295298

296299
1. The command-line flag --exclude=<pattern> specifies a
297300
single pattern. Patterns are ordered in the same order

0 commit comments

Comments
 (0)