Skip to content

Commit

Permalink
[sources/path] Add gitignore-like pattern matching and warn on mismat…
Browse files Browse the repository at this point in the history
…ches

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: <rust-lang#4268>
  • Loading branch information
behnam committed Jul 18, 2017
1 parent 13cf358 commit c072ba4
Show file tree
Hide file tree
Showing 6 changed files with 342 additions and 37 deletions.
57 changes: 57 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ git2 = "0.6"
git2-curl = "0.7"
glob = "0.2"
hex = "0.2"
ignore = "^0.2.2"
jobserver = "0.1.6"
libc = "0.2"
libgit2-sys = "0.6"
Expand Down
1 change: 1 addition & 0 deletions src/cargo/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ extern crate fs2;
extern crate git2;
extern crate glob;
extern crate hex;
extern crate ignore;
extern crate jobserver;
extern crate libc;
extern crate libgit2_sys;
Expand Down
Loading

0 comments on commit c072ba4

Please sign in to comment.