add(rule): add the new git_diff_staged rule

This commit is contained in:
Pablo Santiago Blum de Aguiar
2015-05-29 18:38:01 -03:00
parent 3194913965
commit 15e13d7c1a
3 changed files with 34 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
def match(command, settings):
return command.script.startswith('git d')
def get_new_command(command, settings):
return '{} --staged'.format(command.script)