mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-05-19 09:40:22 -07:00
ignore: add Clone/Debug for builders
This commit is contained in:
parent
34abed597f
commit
c4dd927a13
@ -441,6 +441,7 @@ impl GlobSet {
|
|||||||
|
|
||||||
/// GlobSetBuilder builds a group of patterns that can be used to
|
/// GlobSetBuilder builds a group of patterns that can be used to
|
||||||
/// simultaneously match a file path.
|
/// simultaneously match a file path.
|
||||||
|
#[derive(Clone, Debug)]
|
||||||
pub struct GlobSetBuilder {
|
pub struct GlobSetBuilder {
|
||||||
pats: Vec<Glob>,
|
pats: Vec<Glob>,
|
||||||
}
|
}
|
||||||
|
@ -301,6 +301,7 @@ impl Gitignore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Builds a matcher for a single set of globs from a .gitignore file.
|
/// Builds a matcher for a single set of globs from a .gitignore file.
|
||||||
|
#[derive(Clone, Debug)]
|
||||||
pub struct GitignoreBuilder {
|
pub struct GitignoreBuilder {
|
||||||
builder: GlobSetBuilder,
|
builder: GlobSetBuilder,
|
||||||
root: PathBuf,
|
root: PathBuf,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user