#1131: Improve git_commit_add rule

Add more capabilities to the rule, remove its priority and fix tests
This commit is contained in:
Pablo Santiago Blum de Aguiar
2021-07-08 21:43:35 +02:00
parent 55922e4dbe
commit 11b70526f7
3 changed files with 34 additions and 30 deletions
+1 -1
View File
@@ -234,7 +234,7 @@ following rules are enabled by default:
* `git_branch_0flag` – fixes commands such as `git branch 0v` and `git branch 0r` removing the created branch;
* `git_checkout` – fixes branch name or creates new branch;
* `git_clone_git_clone` – replaces `git clone git clone ...` with `git clone ...`
* `git_commit_add` – offers `git commit -a ...` after previous commit if it failed because nothing was staged;
* `git_commit_add` – offers `git commit -a ...` or `git commit -p ...` after previous commit if it failed because nothing was staged;
* `git_commit_amend` – offers `git commit --amend` after previous commit;
* `git_commit_reset` – offers `git reset HEAD~` after previous commit;
* `git_diff_no_index` – adds `--no-index` to previous `git diff` on untracked files;