Skip to content

Conversation

@the-docta
Copy link
Contributor

if "git commit" is executed with no staged changes, this will add -a to the command.
e.g.

  • git commit => git commit -a
  • git commit -m "blubb" => git commit -a -m "blubb"

@the-docta the-docta changed the title Git commit with no added files New Rule: Git commit with no added files Sep 10, 2020
Add more capabilities to the rule, remove its priority and fix tests
@scorphus scorphus force-pushed the git_commit_add branch 2 times, most recently from 3a0ff25 to 92f70bb Compare July 8, 2021 19:56
scorphus pushed a commit to the-docta/thefuck that referenced this pull request Jul 15, 2021
scorphus added a commit to the-docta/thefuck that referenced this pull request Jul 15, 2021
Add more capabilities to the rule, remove its priority and fix tests
@scorphus scorphus force-pushed the git_commit_add branch 2 times, most recently from ea97d27 to 11b7052 Compare July 15, 2021 11:58
Copy link
Collaborator

@scorphus scorphus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing, @the-docta. Please check the 2nd commit in this PR 🙂

@scorphus scorphus merged commit 11b7052 into nvbn:master Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants