Merge branch 'master' of github.com:nvbn/thefuck
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')
|
||||
|
||||
@@ -14,6 +14,7 @@ patterns = ['permission denied',
|
||||
'need to be root',
|
||||
'need root',
|
||||
'only root can do that',
|
||||
'You don\'t have access to the history DB.',
|
||||
'authentication is required']
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user