-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable adding unstaged files when aider --commit is called from CLI
Currently, running `aider --commit` will add all unstaged files and then create a commit. However, a useful workflow using aider may involve just staging a few files and then calling `aider --commit` to commit those files. In fact, I believe this to be the sensible default. Therefore, this PR passes the information whether the commit was triggered explicitly from the command line interface (CLI), or rather internally later. If it was triggered from CLI, then after this change aider will not append the `-a` flag to the `git commit` command.
- Loading branch information
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters