-
Notifications
You must be signed in to change notification settings - Fork 1
feat(cli): Default 'commit' to staged-only and add '--all' flag #73
Copy link
Copy link
Open
Labels
Description
The current contextvibes factory commit command automatically stages all modified and untracked files before committing. This behavior prevents developers from creating atomic commits when multiple, unrelated changes exist in the working directory. It forces the bundling of logically separate changes, which is contrary to best practices for version control and complicates code reviews.
Proposed Solution:
- Change the Default: The command should only commit files that have already been manually staged by the user (via
git add). This aligns with the standard, expected behavior ofgit commit. - Add an
--allFlag: Introduce a new flag,-aor--all, to replicate the current "stage everything" behavior for users who want that convenience.
This change would significantly improve the tool's usability and help enforce our project's standard of creating small, atomic commits.
Context
- CLI Version:
dev - OS/Arch:
linux/amd64 - Filed by: @duizendstra
Reactions are currently unavailable