Skip to content

Add add_gitignore mthod to WalkBuilder #2983

Open
@shulaoda

Description

@shulaoda

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions