From 9e86149abd6b295d19a01b332fb601fc6a4ca892 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Sun, 10 Mar 2024 15:48:49 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20ci(git):=20Remove=20description?= =?UTF-8?q?=20from=20msg=20hook?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's much easier to just write the description in the editor, rather than trying to figure out how to wrap text at 72 chars in the shell script. --- .config/git/hooks/prepare-commit-msg | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.config/git/hooks/prepare-commit-msg b/.config/git/hooks/prepare-commit-msg index 59d09e2..c524815 100755 --- a/.config/git/hooks/prepare-commit-msg +++ b/.config/git/hooks/prepare-commit-msg @@ -81,10 +81,6 @@ set summary $(gum input --value "$summary" --placeholder "Summary of this change # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -set -l description $(gum write --placeholder "Details of this change (Ctrl-D to finish)") - -# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - set -l footer "" breaking && set footer $(gum input --value "BREAKING CHANGE: " --placeholder "The breaking change being introduced") @@ -101,16 +97,10 @@ breaking && set footer $(gum input --value "BREAKING CHANGE: " --placeholder "Th # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# gum confirm "Commit changes?" && git commit -m "$emoji $summary" -m "$description" -m "$footer" - set -l msg "$(cat $msg_file)" set -l new_msg "$emoji $summary\n\n" -if test ! -z "$description" - set new_msg "$new_msg$description\n\n" -end - if test ! -z "$footer" set new_msg "$new_msg$footer\n\n" end