-
Notifications
You must be signed in to change notification settings - Fork 84
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
Disable backup entirely? #145
Comments
You can use the following
But I don't recommend it! |
What if it's being read from STDIN and being written to STDOUT (my use case since I have it integrated with an editor)? |
Back up files are only made when the -w flag is active.
…On Thu, 18 Oct 2018, 16:38 Alok Singh, ***@***.***> wrote:
What if it's being read from STDIN and being written to STDOUT (my use
case since I have it integrated with an editor)?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#145 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACHxYL5gSk7aWQO2W-c-ufiRYLDvRQH2ks5umKCLgaJpZM4XsgF3>
.
|
If I create a new directory
It creates |
The log file is not a backup file, it's a log file :) You can redirect it to a different directory using the -c switch. Alternatively, you can hide it using, for example
|
Alright, I'll redirect to |
Turns out redirecting to /dev/null gives the error |
Can you confirm the version you're using? Did this behaviour change because of an update? |
OK, so how about I remove the 'die' statement for log file creation? |
using version 3.9.1 (bundled with mactex 2021). which die statement is that exactly? |
latexindent.pl/LatexIndent/Document.pm Line 165 in e198fa5
Should be able to remove the die statement without issue.... Some experimentation needed, but should be ok |
If you change line 165 of the above file to
does that help....? |
logfile die process removed as of da2b15e. this will be part of the next release. |
Add the hooks.latexindent.settings.disableExtraFiles option to prevent the creation of backup and log files. Upstream refuses adding an option to disable backup and log file creation to protect non-version-controlled users from data loss, despite it being considered unnecessary for those using version control. [1] [2] [3] Considering that Git is the standard in Nix and required for flakes, providing this option is reasonable. [1]: cmhughes/latexindent.pl#145 [2]: cmhughes/latexindent.pl#333 [3]: cmhughes/latexindent.pl#354 Link: cachix#514
Add the hooks.latexindent.settings.disableExtraFiles option to prevent the creation of backup and log files. Upstream refuses adding an option to disable backup and log file creation to protect non-version-controlled users from data loss, despite it being considered unnecessary for those using version control. [1] [2] [3] Considering that Git is the standard in Nix and required for flakes, providing this option is reasonable. [1]: cmhughes/latexindent.pl#145 [2]: cmhughes/latexindent.pl#333 [3]: cmhughes/latexindent.pl#354 Link: cachix#514
Add the hooks.latexindent.settings.disableExtraFiles option to prevent the creation of backup and log files. Upstream refuses adding an option to disable backup and log file creation to protect non-version-controlled users from data loss, despite it being considered unnecessary for those using version control. [1] [2] [3] Considering that Git is the standard in Nix and required for flakes, providing this option is reasonable. [1]: cmhughes/latexindent.pl#145 [2]: cmhughes/latexindent.pl#333 [3]: cmhughes/latexindent.pl#354 Link: cachix#514
I really don't want to save any backups, and would like to leave that task up to version control as I find the backup file to be unnecessary clutter. Is there a way to do this?
The text was updated successfully, but these errors were encountered: