forked from cmhughes/latexindent.pl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
--overwriteWithoutBackup
flag for usage with pre-commit
Spamming backup files for files that are already managed by git is pointless. By using this new flag, the user explicitly states that he or she wants to overwrite the files without backup. There is no short option to avoid triggering this option by accident and the help text should be pretty clear that using this option is not recommended unless you know what you're doing. Hence, the risk of accidental data loss something should be pretty much non-existant. Also note that almost every other source code formatter has options to to reformat and overwrite files without creating a backup. Fixes cmhughes#333.
- Loading branch information
Showing
3 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters