dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit b813d4eabda49de508f258327c1a45eb4d734f36
parent b57727afe6720106647f8afa88ea3312ddb8200a
Author: hhvn <dev@hhvn.uk>
Date:   Sun, 31 Oct 2021 23:08:26 +0000

.c/g/add-commit: pass arguments directly onto git

Diffstat:
M.config/git/add-commit | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.config/git/add-commit b/.config/git/add-commit @@ -36,7 +36,7 @@ done # then format these into the COMMIT_EDITMSG file [ "$shorten" = "y" ] && { - echo "$@:" | sed -E 's~([a-zA-Z])[^ /]*/~\1/~g' > .git/COMMIT_EDITMSG + echo "$@:" | sed -E 's~([a-zA-Z])[^ /]*/~\1/~g;s~(^| )--?[a-z]*( |$)~~g' > .git/COMMIT_EDITMSG } || echo "$@:" > .git/COMMIT_EDITMSG sum=$(sha256sum .git/COMMIT_EDITMSG) ${EDITOR:-vim} .git/COMMIT_EDITMSG