Skip to content

Conversation

@vavasilva
Copy link
Owner

Summary

Changes

  • src/cli.ts: Changed default behavior to only use staged files; added --all flag
  • README.md: Updated examples and CLI options table

New Behavior

Command Behavior
git add file.ts && git-commit-ai Commits only staged files
git-commit-ai --all Stages everything first (previous default behavior)

Test plan

  • npm run typecheck passes
  • npm run test passes (61 tests)
  • npm run build succeeds
  • --help shows new -a, --all flag
  • Manual test: stage one file, run git-commit-ai, verify only that file is committed
  • Manual test: run git-commit-ai --all, verify all changes are staged and committed

🤖 Generated with Claude Code

@vavasilva vavasilva merged commit b9ce879 into main Jan 10, 2026
3 checks passed
@vavasilva vavasilva deleted the fix/use-only-staged-files branch January 10, 2026 16:16
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.

Comportamento inesperado: CLI adiciona todos os arquivos ao invés de usar apenas os staged

2 participants