Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Finder] Fix finding VCS re-included files in excluded directory#45095

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@julienfalque
Copy link
Contributor

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
Tickets#45048
LicenseMIT
Doc PR-

This PR fixes a bug whereFinder would not return a file inside a directory when gitignore rules exclude the directory but re-include the file.

The first commit makesFinder return the file. Though, as shown by the second commit, the directory is still not returned. Strictly speaking, the directoryis ignored, so in some senseFinder is correct. But then it contains a file that is not ignored. In this case, Git would see the directory anyway. ShouldFinder return any ignored directory as soon as it contains a file that is not ignored? Even if that file is not part ofFinder results?

@nicolas-grekas
Copy link
Member

Thank you@julienfalque.

@nicolas-grekasnicolas-grekas merged commit79d1101 intosymfony:5.4Jan 26, 2022
@julienfalquejulienfalque deleted the gitignore-reincluded-files branchJanuary 26, 2022 16:42
@julienfalque
Copy link
ContributorAuthor

Thanks for merging@nicolas-grekas! What's your opinion about returning the directory as well (see#45095 (comment))?

@nicolas-grekas
Copy link
Member

I don't know, I'm not into that business :)
Someone that has the use case should tell.

This was referencedJan 28, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

3 participants

@julienfalque@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp