commit message

This commit is contained in:
2025-04-26 18:31:09 +02:00
parent 41782911d0
commit 2f4f5825b1

View File

@@ -283,9 +283,9 @@ build-package-sources +packages:
# === commit helpers ===
[no-cd]
@commit-staged:
@commit-staged *$message:
test -n "$(git diff HEAD --name-only --staged)" || ! echo >&2 "No files are staged!"
$GIT -c commit.template=<(git diff HEAD --name-only --staged | just _list_packages_fname_filtered | cut -f1 | sed -e 's/$/: /g') commit && git show
$GIT -c commit.template=<(git diff HEAD --name-only --staged | just _list_packages_fname_filtered | cut -f1 | xargs -d'\n' printf "%s: ${*//%/%%}\n") commit && git show
[no-cd]
commit-dirty-packages +$message=`gum input --placeholder="commit message, (attrpath: this message)"`: