Skip to content

Releases: somayaj/git-cli

v0.4.5 - Branch Workflow Fixes

26 May 17:30

Choose a tag to compare

Bug Fixes

  • Auto-recover git checkout -b: When the LLM generates git checkout -b <branch> for a branch that already exists, the executor now automatically retries with git checkout <branch> (without -b) instead of aborting
  • Strip trailing positional args: Commands like git branch -r origin (invalid) are auto-fixed to git branch -r when 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 -r prompt 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

26 May 12:49

Choose a tag to compare

  • 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

26 May 05:15

Choose a tag to compare

  • 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

26 May 04:44

Choose a tag to compare

  • 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

26 May 04:35

Choose a tag to compare

  • 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

26 May 02:44

Choose a tag to compare

  • 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

26 May 02:44

Choose a tag to compare

  • 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

26 May 02:44

Choose a tag to compare

  • Dual model support (fast/smart model routing)
  • Safety checks for destructive commands
  • HEAD~N validation
  • Shell-aware argument splitting

v0.1.0 - Initial Release

26 May 02:44

Choose a tag to compare

Initial release of git-cli - natural language to git commands using local Ollama LLM