A CLI written in Go language that writes git commit messages or do a code review brief for you using ChatGPT AI (gpt-4o, gpt-4-turbo, gpt-3.5-turbo model) and automatically installs a git prepare-commit-msg hook.
MIT License
1.22k
stars
109
forks
source link
fix: fix COMMIT_EDITMSG of worktree missing bug #70
git worktree's COMMIT_EDITMSG are stored in
repo/.git/worktrees/branch/COMMIT_EDITMSG
We should use
git rev-parse --git-dir
to get the worktree's git direcotry, and find the COMMIT_EDITMSG.Hope this patch can fix #49.