Auto Commit Splitter

Intelligently split your Git changes into logical commits using AI. Analyze hunks, file operations, and generate conventional commit messages automatically.
✨ Features
🎨 Modern Webview Interface (New in v1.1.0)
- Professional Activity Bar Panel: Dedicated, always-accessible interface in VS Code sidebar
- Real-time Git Status: Live updates of branches, commits, and file changes
- Interactive Git Operations: Stage, unstage, discard files with one-click actions
- Branch Management: Create and switch branches directly from the UI
- Visual Commit Preview: See exactly what commits will be created before execution
🤖 AI-Powered Commit Splitting
- Automatically analyze your working directory changes
- Split hunks and file operations into logical, reviewable commits
- Generate meaningful commit messages following Conventional Commits standard
📊 Smart Change Analysis
- Hunk-based splitting: Intelligently group related code changes
- File operations tracking: Handle add, delete, rename, copy, and binary file changes
- Conflict detection: Safely handle merge conflicts and staged changes
🎯 Enhanced Developer Experience
- Responsive Design: Adapts beautifully to any panel size
- Progress Tracking: Real-time feedback with step-by-step progress indicators
- Professional UI: Modern badge system, collapsible sections, hover effects
- Full Text Display: No more truncated branch names or commit messages
🌍 International Support
- Multi-language: Full support for English and Turkish
- Localized UI: All messages and configurations in your language
🚀 Quick Start
Requirements
- VS Code 1.108.1 or higher
- Git repository in your workspace
- Language model provider (e.g., GitHub Copilot Chat, Azure OpenAI)
Installation
Option 1: From Open VSX Registry
- Install from Vs Code Market Place
- Or use:
code --install-extension cemal-nadir.auto-commit-splitter
Option 2: Manual Installation (VSIX)
- Download the latest
auto-commit-splitter-x.x.x.vsix from GitHub Releases
- In VS Code:
Extensions > Views and More Actions... > Install from VSIX...
Setup
- Open a Git repository in VS Code
- Make some changes to your files
- Use the command palette (
Ctrl+Shift+P) and run:
Auto Commit Splitter: Split and Commit - Analyze and split your changes
Auto Commit Splitter: Select Model - Choose your preferred AI model
📖 Usage
Basic Workflow
- Make Changes: Edit files in your Git repository
- Run Splitter: Execute
Auto Commit Splitter: Split and Commit
- Review Plan: Preview the generated commit strategy
- Apply: Confirm to create the commits automatically
Example Output
## 1) feat(ui): add user profile component
Hunks:
- h3f2a1b9c0 — src/components/UserProfile.tsx (+45/-0) @@ -0,0 +1,45 @@
## 2) fix(api): handle authentication errors
Hunks:
- h8d4e5f1a2 — src/api/auth.ts (+12/-3) @@ -23,8 +23,17 @@
## 3) docs: update README with new features
Operations:
- op9c7b2d8e4 — add: README.md
⚙️ Configuration
Access settings through VS Code Settings (Ctrl+,) and search for "Auto Commit Splitter":
| Setting |
Default |
Description |
autoCommitSplitter.autoApply |
false |
Automatically apply commits without confirmation |
autoCommitSplitter.includeUntracked |
true |
Include untracked files as operations |
autoCommitSplitter.modelId |
"" |
Selected language model ID |
🎨 Commands
| Command |
Description |
Keyboard Shortcut |
autoCommitSplitter.splitAndCommit |
Analyze and split current changes |
- |
autoCommitSplitter.selectModel |
Choose AI model for analysis |
- |
🔧 Advanced Usage
Custom Configuration
{
"autoCommitSplitter.autoApply": false,
"autoCommitSplitter.includeUntracked": true,
"autoCommitSplitter.modelId": "gpt-4"
}
SCM Integration
The extension adds a button to the Source Control view for easy access to commit splitting functionality.
🤝 Contributing
We welcome contributions! Please see our Contributing Guidelines for details.
Development Setup
- Clone the repository
- Install dependencies:
npm install
- Open in VS Code and press
F5 to run the extension in a new Extension Development Host window
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🐛 Support
📊 Changelog
See CHANGELOG.md for a list of changes and version history.
🏆 Acknowledgments
Happy Coding! 🎉
If you find this extension helpful, please consider leaving a review on the VS Code Marketplace.