Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Only commit staged files if files have been staged. #879

Open
nevercast opened this issue Jul 18, 2024 · 1 comment · May be fixed by #1812
Open

Enhancement: Only commit staged files if files have been staged. #879

nevercast opened this issue Jul 18, 2024 · 1 comment · May be fixed by #1812
Labels
enhancement New feature or request

Comments

@nevercast
Copy link

Issue

I appreciate Aider's commit messages; they often surpass Copilot's, which seems to have declined recently.

In my workflow, I stage the files I intend to commit, create a commit message for them, and then proceed to stage the next set of files.

I'm considering using Aider's /commit feature for this process. However, Aider currently stages and commits all modified files.

This doesn't align with my method of working alongside Aider, where I prefer to commit only the staged files, not every changed file.

Additionally, I've observed that Aider overlooks new files during /commit. If /commit is designed to stage and commit all changes, excluding new files appears to be an oversight.

Finally, during refactors, I often end up with numerous uncommitted files. I need to segment these into several commits. Even if I wanted Aider to commit everything, I would encounter a "diff too large" error.

Version and model info

Aider v0.43.4
Models: openrouter/anthropic/claude-3.5-sonnet with diff edit format, weak model gpt-3.5-turbo
Git repo: .git with 505 files
Repo-map: using 1024 tokens
VSCode terminal detected, pretty output has been disabled.
Use /help to ask for help, run with --help to see cmd line args

@paul-gauthier paul-gauthier added the enhancement New feature or request label Jul 22, 2024
@zhangyi1357
Copy link

I want this too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants