Releases: somayaj/git-cli
Releases · somayaj/git-cli
v0.4.5 - Branch Workflow Fixes
Bug Fixes
- Auto-recover
git checkout -b: When the LLM generatesgit checkout -b <branch>for a branch that already exists, the executor now automatically retries withgit checkout <branch>(without-b) instead of aborting - Strip trailing positional args: Commands like
git branch -r origin(invalid) are auto-fixed togit branch -rwhen the error "do not take a branch name" is detected - Push-before-delete rule: Added explicit prompt rule and example for the create → push → delete branch lifecycle, ensuring the branch is pushed to remote before attempting remote deletion
- Remote branch listing example: Added
git branch -rprompt example to guide the LLM - Separated delete error handling: Local branch delete (
git branch -D) and remote branch delete (git push origin --delete) now have independent error handling paths
v0.4.4 - Bug Fix
- Auto-merge remaining open PRs after all commands finish
- Auto-push branch to remote before first gh pr create
- Block cherry-pick and checkout in PR workflows at executor level
- Block commands with placeholder values like
- Strip inline comments from commands while preserving #N PR references
- Allow git push origin :branch delete syntax
- Continue past failed branch delete commands
- Add prompt examples for branch deletion and query commands
- Ban for loops, xargs, shell variables in prompt rules
v0.4.3 - Bug Fix
- Fix all compiler warnings (zero warnings build)
- Remove unused shortcuts module
- Route analytical queries (how many, who are, pending, reviews) to smart model
- Set mistral:7b as default smart model for better reasoning
v0.4.2 - Bug Fix
- Auto-strip pipe suffixes (| wc -l, | sort -u) instead of blocking commands
- Add prompt examples for commit counting and committer listing
- Add rule banning shell pipes, subshells, and chained commands
v0.4.1 - Bug Fix
- Auto-detect and strip hallucinated git flags from LLM output
- Retry commands up to 3 times after removing bad flags
- Preserve quoting when removing flags to avoid breaking format strings
- Update Rust edition to 2024
v0.4.0 - Robust PR Workflow
- Dynamic PR number remapping: captures actual PR numbers from gh pr create output
- Merge strategy fallback: auto-retries --squash then --rebase when --merge is not allowed
- Continue on failure: skips failed gh commands, continues with remaining, prints summary
- Push failure handling: continues past non-fast-forward errors when branch exists on remote
- Safety blocks: executor-level blocking of refspec pushes and rebase -i
- PR context filtering: splits open PRs by branch to prevent cross-branch confusion
- Prompt refinements: no trailing push after merges, branch-specific PR ownership
v0.3.0 - GitHub CLI Integration
- Dual model routing with complexity detection
- GitHub CLI (gh) support for PR creation and merging
- Improved prompt engineering with few-shot examples
- Auto glob fix for filter-branch case patterns
- Ban rebase -i in non-interactive environments
v0.2.0 - Dual Model Support
- Dual model support (fast/smart model routing)
- Safety checks for destructive commands
- HEAD~N validation
- Shell-aware argument splitting
v0.1.0 - Initial Release
Initial release of git-cli - natural language to git commands using local Ollama LLM