pre-commit/pre_commit
Pierre Sassoulas 330213e3d2 Make the unstagged changes patch filename easier to understand
By having the basename of the repository directory and a
human readable time in the filename.

Instead of having something like this:
```
[WARNING] Unstaged files detected.
[INFO] Stashing unstaged files to /home/asottile/.cache/pre-commit/patch1591945458.
```

We'll now have something like this:
```
[WARNING] Unstaged files detected.
[INFO] Stashing unstaged files to /home/pierre/.cache/pre-commit/patch-pre-commit-2020-06-12-11-37-48.
```
2020-06-12 15:19:50 +02:00
..
commands normalize slashes even earlier on windows for filenames 2020-06-08 14:53:27 -07:00
languages use the shuffle method of Random instead 2020-05-31 12:42:17 -07:00
meta_hooks normalize slashes even earlier on windows for filenames 2020-06-08 14:53:27 -07:00
resources Add dummy go.mod for local "empty" installs 2020-05-02 21:02:36 +03:00
__init__.py Initial commit. 2014-03-12 20:25:19 -07:00
__main__.py upgrade hooks, pyupgrade pre-commit 2020-01-12 09:27:04 -08:00
clientlib.py Replace aspy.yaml with sort_keys=False 2020-01-31 17:18:59 -08:00
color.py support colors on windows during git better 2020-04-02 00:10:37 -07:00
constants.py add support for post-commit 2020-04-27 10:55:22 -07:00
envcontext.py Add types to pre-commit 2020-01-12 10:15:01 -08:00
error_handler.py Don't crash out on OSErrors in subprocess calls 2020-03-12 10:52:10 -07:00
file_lock.py Use covdefaults to handle coveragerc 2020-02-29 14:25:19 -08:00
git.py Make the unstagged changes patch filename easier to understand 2020-06-12 15:19:50 +02:00
hook.py move Hook data type to a separate file 2020-01-15 14:20:51 -08:00
logging_handler.py Some manual .format() -> f-strings 2020-01-12 13:39:53 -08:00
main.py add support for post-commit 2020-04-27 10:55:22 -07:00
make_archives.py More miscellaneous cleanup 2020-01-13 11:47:34 -08:00
output.py More miscellaneous cleanup 2020-01-13 11:47:34 -08:00
parse_shebang.py Use covdefaults to handle coveragerc 2020-02-29 14:25:19 -08:00
prefix.py Add types to pre-commit 2020-01-12 10:15:01 -08:00
repository.py move Hook data type to a separate file 2020-01-15 14:20:51 -08:00
staged_files_only.py Make the unstagged changes patch filename easier to understand 2020-06-12 15:19:50 +02:00
store.py Use the real path of the cache root 2020-05-08 14:22:57 -07:00
util.py Maintain scalar quoting style when autoupdate re-writes rev 2020-05-04 19:29:03 -07:00
xargs.py keyword only arguments in some places 2020-01-12 13:39:53 -08:00