Added support for gitignore files. (#1044)

* Added support for gitignore files.
The watch command will now ignore files based on gitignore. This can be useful for when your editor creates cache or swap files.

* Ran cargo fmt.

* Made the code a bit tidier based on input from other Rust programmers.
Changed the type of the closure back to use PathBuf, not &PathBuf.
Reduced nesting.
This commit is contained in:
Kim Hå
2019-10-04 14:59:17 +02:00
committed by Dylan DPC
parent a6f317e352
commit 8e8e53ae15
4 changed files with 58 additions and 3 deletions

2
.gitignore vendored
View File

@@ -9,3 +9,5 @@ book-example/book
.vscode
tests/dummy_book/book/
# Ignore Jetbrains specific files.
.idea/