[Source Control/Copilot] Allow copilot to group/organize files by change context and plan/execute multiple commits for you
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
## Description
### Current State
When I am working my changes in visual studio code and I am ready commit them, currently using specially AI (Copilot with Claude for example) many files are changed and are waiting to be committed.
Currently the best you can do is stage manually the files you want to commit then you can generate (very helpful feature) the commits you want to do.
Or (a bad practice) stash everything (image with 254 files below) and commit it like with long commit message:
### Desired State
I would love to have a option to click the "copilot" button (or more options in the commit) and copilot instead of generating the commit message, also organize the files in different commits (using the context of the changes as input).
In this way I could just click the button to generate the commits, copilot would generate them and I could review approve and it would be committed for me.
Copilot could use for example [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) to create the commit messages to follow best practices.
### Advantages
I think this would reduce the ammout of people using AI in open source projects then committing everything in PRs just with one Commit, because most of the time they dont have the knowledge to use Git the proper way, and this way they could just do their changes and copilot would take care for them to split the changes in different commits.
This would make easier to do cherry picking in future, and also support the reviewers of PRs.
Would keep the code more traceable and also we could make a option that if AI has touched a specific file he would add to the commit a "co-authored by" automatically.
### Disavantages
May consume your tokens or require more computing power than just "generating a message".
### Contribution
I could try to contribute it and provide an initial version for it. Otherwise I am also ok to support on reviewing a PR giving feedback.
Contributor guide
Assessment
This issue has not been assessed yet.