mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-08-29 11:23:55 -07:00
ignore: support custom file names
This commit adds support for ignore files with custom names. This allows for application specific ignorefile names, e.g. using `.fdignore` for `fd`. See also: https://github.com/BurntSushi/ripgrep/issues/673 See also: https://github.com/sharkdp/fd/issues/156
This commit is contained in:
@@ -288,6 +288,9 @@ impl Args {
|
||||
wd.git_ignore(!self.no_ignore && !self.no_ignore_vcs);
|
||||
wd.git_exclude(!self.no_ignore && !self.no_ignore_vcs);
|
||||
wd.ignore(!self.no_ignore);
|
||||
if !self.no_ignore {
|
||||
wd.add_custom_ignore_filename(".rgignore");
|
||||
}
|
||||
wd.parents(!self.no_ignore_parent);
|
||||
wd.threads(self.threads());
|
||||
if self.sort_files {
|
||||
|
Reference in New Issue
Block a user