Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tmccombs
Copy link
Collaborator

@tmccombs tmccombs commented Feb 6, 2025

Relates-To: #1337

.I pattern
was a line in the global ignore file.

Note that for purposes of ignore rules, the current directory
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Current directory" is kind of ambiguous. It's really the search path that is treated as the root, not the cwd.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm, this is.... interesting.

It looks like if there are multiple search paths, then it use the first one for all:

❯ fd
a/
a/other
a/test/
b/
b/a
b/test/
test/

❯ fd --exclude '/test' --search-path a
a/other

❯ fd --exclude '/test' --search-path b
b/a

❯ fd --exclude '/test' --search-path b --search-path b
b/a
b/a

❯ fd --exclude '/test' --search-path b --search-path a
a/other
a/test/
b/a

❯ fd --exclude '/test' --search-path a --search-path b
a/other
b/a
b/test/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants