Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add add_gitignore mthod to WalkBuilder #2983

Open
shulaoda opened this issue Feb 3, 2025 · 0 comments
Open

Add add_gitignore mthod to WalkBuilder #2983

shulaoda opened this issue Feb 3, 2025 · 0 comments

Comments

@shulaoda
Copy link

shulaoda commented Feb 3, 2025

Describe your feature request

Related to #2964

Currently, OverrideBuilder does not behave as expected with respect to the reverse functionality of GitignoreBuilder. Therefore, I propose adding an add_gitignore method to WalkBuilder that would allow users to directly pass a Gitignore object instead of needing to provide a path that converts a .gitignore file into a Gitignore object.

This method could function similarly to add_ignore, but instead of reading the .gitignore file from a path, it would accept a Gitignore object directly.

pub fn add_gitignore(&mut self, gi: Gitignore)  {
    self.ig_builder.add_ignore(gi);
}
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

No branches or pull requests

1 participant