Don't stash with --all-files. Closes #68.

This commit is contained in:
Anthony Sottile 2014-04-13 20:04:58 -07:00
parent 8a8b2241a6
commit 3e2b1862ad
3 changed files with 16 additions and 8 deletions

View file

@ -234,7 +234,7 @@ def run(runner, args, write=sys.stdout.write):
logger.addHandler(LoggingHandler(args.color, write=write))
logger.setLevel(logging.INFO)
if args.no_stash:
if args.no_stash or args.all_files:
ctx = noop_context()
else:
ctx = staged_files_only(runner.cmd_runner)