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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user