Skip to content

Commit

Permalink
Auto merge of #4270 - behnam:ignore, r=alexcrichton
Browse files Browse the repository at this point in the history
[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>
  • Loading branch information
bors committed Jul 18, 2017
2 parents baa2e8a + c072ba4 commit 8bbb703
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 8bbb703

Please sign in to comment.