pre-commit/pre_commit
Sebastien Chemin 5206ce2448 Fix file stashing with external diff tool
When git is configured to use an external diff tool to show diffs
(eg. 'git config diff.external mytool'), the stashing unstaged files
will create an empty file that can't be recovered.

Some modifications are permanently lost...

Just disable the ext-diff of git diff to avoid any issue.

Change-Id: I10a57ac2acbcb1f7219455f1958efd50d8452d6a
2016-09-09 16:36:32 +02:00
..
clientlib Less blocking logic 2015-12-22 19:06:31 +00:00
commands Autoupdate to tags when available 2016-06-23 08:29:33 -07:00
languages Remove tarfile_open (tarfile open in 2.7+) 2016-08-31 16:24:30 -07:00
resources Fixups and test for pre-commit/pre-commit#277 2015-10-08 19:08:49 -07:00
__init__.py Initial commit. 2014-03-12 20:25:19 -07:00
__main__.py Runnable as python -m pre_commit 2014-07-22 19:22:29 -07:00
color.py Improve --color help with argparse metavar 2016-03-08 16:34:09 -08:00
constants.py Refactor fixtures in tests. 2014-06-15 18:49:45 -07:00
envcontext.py Add envcontext helper 2016-03-25 11:21:50 -07:00
error_handler.py Fail gracefully on undecodable install output. 2016-01-12 10:08:59 -08:00
errors.py Add error_handler and use it. 2014-08-13 11:02:28 -07:00
five.py We're not using pylint 2016-05-20 16:14:18 -07:00
git.py Clarify/correct error message 2016-08-16 15:47:17 +02:00
jsonschema_extensions.py Update some pre-commit hooks + some minor tweaks 2015-01-04 15:58:39 -08:00
logging_handler.py Use super() ('newstyle class' in 2.7+) 2016-08-31 16:20:55 -07:00
main.py Improve --color help with argparse metavar 2016-03-08 16:34:09 -08:00
make_archives.py Remove tarfile_open (tarfile open in 2.7+) 2016-08-31 16:24:30 -07:00
manifest.py Update some pre-commit hooks + some minor tweaks 2015-01-04 15:58:39 -08:00
ordereddict.py Make ordereddict a direct dependency. 2014-06-17 06:59:13 -07:00
output.py Use pyterminalsize for terminal sizing 2016-02-21 21:07:08 -08:00
parse_shebang.py Don't crash when an executable is not found 2016-05-20 13:32:33 -07:00
prefixed_command_runner.py Factor out bash and activate files 2016-03-25 11:21:50 -07:00
repository.py Clarify language around missing hooks. Resolves #386 2016-06-25 08:14:58 -07:00
runner.py Making it possible to invoke pre-commit run --files some.file from a subdirectory of the repository 2016-02-07 12:25:51 -08:00
staged_files_only.py Fix file stashing with external diff tool 2016-09-09 16:36:32 +02:00
store.py Fix #322 by only removing git environment variables while cloning 2015-12-22 19:10:08 -08:00
util.py Remove tarfile_open (tarfile open in 2.7+) 2016-08-31 16:24:30 -07:00
xargs.py Implement 'negate' to simplify pcre 2016-03-25 11:21:50 -07:00