Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for gitignore files. #1044

Merged
merged 3 commits into from Oct 4, 2019
Merged

Added support for gitignore files. #1044

merged 3 commits into from Oct 4, 2019

Conversation

segfaultsourcery
Copy link
Contributor

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

I saw that others were having the same issue I'm having, namely that mdBook is frantically rebuilding files with every keystroke, because the editor keeps saving it in a cache file. This allows you to add those files to .gitignore. In my case, adding a line with "*.kate-swp" fixed the problem completely.

The watch command will now ignore files based on gitignore. This can be useful for when your editor creates cache or swap files.
Changed the type of the closure back to use PathBuf, not &PathBuf.
Reduced nesting.
@Dylan-DPC-zz Dylan-DPC-zz merged commit 8e8e53a into rust-lang:master Oct 4, 2019
Ruin0x11 pushed a commit to Ruin0x11/mdBook that referenced this pull request Aug 30, 2020
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants