Skip to content

Commit

Permalink
Impl Debug for IgnoreDir.
Browse files Browse the repository at this point in the history
  • Loading branch information
amsharma91 committed Sep 20, 2016
1 parent b3b04ca commit 92f728c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ignore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ impl Ignore {
if !self.no_ignore {
for id in self.stack.iter().rev().filter_map(|id| id.as_ref()) {
let mat = id.matched(path, is_dir);
// println!("{}, {:?}, {:?}, {:?}\n", path.display(), is_dir, mat, id);
if let Some(is_ignored) = self.ignore_match(path, mat) {
if is_ignored {
return true;
Expand Down Expand Up @@ -257,6 +258,7 @@ impl Ignore {

/// IgnoreDir represents a set of ignore patterns retrieved from a single
/// directory.
#[derive(Debug)]
pub struct IgnoreDir {
/// The path to this directory as given.
path: PathBuf,
Expand Down

0 comments on commit 92f728c

Please sign in to comment.