Skip to content

Commit c072ba4

Browse files
committed
[sources/path] Add gitignore-like pattern matching and warn on mismatches
Add gitignore-like pattern matching logic to `list_files()` and throw warnings for paths getting different inclusion/exclusion results from the old and the new methods. Migration Tracking: <#4268>
1 parent 13cf358 commit c072ba4

File tree

6 files changed

+342
-37
lines changed

6 files changed

+342
-37
lines changed

Cargo.lock

Lines changed: 57 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ git2 = "0.6"
3131
git2-curl = "0.7"
3232
glob = "0.2"
3333
hex = "0.2"
34+
ignore = "^0.2.2"
3435
jobserver = "0.1.6"
3536
libc = "0.2"
3637
libgit2-sys = "0.6"

src/cargo/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ extern crate fs2;
1919
extern crate git2;
2020
extern crate glob;
2121
extern crate hex;
22+
extern crate ignore;
2223
extern crate jobserver;
2324
extern crate libc;
2425
extern crate libgit2_sys;

0 commit comments

Comments
 (0)