Fix the git_diff_staged rule

The problem was:
```
% git add foo
% git diff foo
% fuck
git diff foo --staged [enter/ctrl+c]
fatal: bad flag '--staged' used after filename
```
This commit is contained in:
mcarton
2015-07-21 14:01:22 +02:00
parent 66e2ec7e3f
commit 1285303363
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -10,4 +10,4 @@ def match(command, settings):
@utils.git_support
def get_new_command(command, settings):
return '{} --staged'.format(command.script)
return command.script.replace(' diff', ' diff --staged')