Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
leonzchang committed Nov 29, 2023
1 parent 40c034e commit 7082689
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cmd/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ fn find_gitignore(book_root: &Path) -> Option<PathBuf> {
.find(|p| p.exists())
}

// Using `canonicalize` can fail on Windows sometimes, might be a potential risk.
// see ([https://github.com/rust-lang/mdBook/pull/2229#discussion_r1408665981).
fn filter_ignored_files(ignore: Gitignore, paths: &[PathBuf]) -> Vec<PathBuf> {
let ignore_root = ignore
.path()
Expand Down

0 comments on commit 7082689

Please sign in to comment.