Skip to content

Commit

Permalink
feat(git): don't use codegpt if user supplies message with `git commi…
Browse files Browse the repository at this point in the history
…t -m` (#151)

* feat: don't use codegpt if user supplies message with `git commit -m`

* fix: issue with one-line bash
  • Loading branch information
bresilla committed Apr 24, 2024
1 parent dbdf104 commit b8925e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion git/templates/prepare-commit-msg
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh

codegpt commit --file $1 --preview
if [[ "$2" != "message" ]]; then
codegpt commit --file $1 --preview
fi

0 comments on commit b8925e3

Please sign in to comment.