New answers tagged

0

Use the source, which is in Mercurial. A comment in backup.c says * Finally, if VERSION_CONTROL is "none" or "never", backups are not * made. I suggest you avoid this behaviour. The allowed values for VERSION_CONTROL are listed in the same file: { {none, "never"}, /*!< Don't make backups. */ {none, "none"}, ...


0

Using mktemp: a=$(mktemp) indent -o "$a" file mv "$a" file Using Vim in Ex mode: ex -sc '%!indent -st' -cx file



Top 50 recent answers are included