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
+1
View File
@@ -159,6 +159,7 @@ using the matched rule and runs it. Rules enabled by default are as follows:
* `java` – removes `.java` extension when running Java programs;
* `git_add` – fix *"Did you forget to 'git add'?"*;
* `git_checkout` – creates the branch before checking-out;
* `git_diff_staged` – adds `--staged` to previous `git diff` with unexpected output;
* `git_no_command` – fixes wrong git commands like `git brnch`;
* `git_pull` – sets upstream before executing previous `git pull`;
* `git_push` – adds `--set-upstream origin $branch` to previous failed `git push`;