Merge pull request #230 from scorphus/git-diff-staged-rule

add(rule): add the new git_diff_staged rule
This commit is contained in:
Vladimir Iakovlev
2015-06-01 08:10:06 +03:00
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)