dotfiles

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

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

.c/g/add-commit: use posix "$@" instead of xargs -0

Diffstat:
M.config/git/add-commit | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/.config/git/add-commit b/.config/git/add-commit @@ -43,11 +43,7 @@ done sum2=$(sha256sum .git/COMMIT_EDITMSG) [ "$sum" != "$sum2" ] && { - while [ $# -ne 0 ] - do - printf "%s\0" "$1" - shift - done | xargs -0 git add || exit 1 + git add "$@" || exit 1 git commit -F .git/COMMIT_EDITMSG } || { echo "error: COMMIT_EDITMSG not changed"