diff --git a/justfile b/justfile index fb2b11a..b56eea7 100644 --- a/justfile +++ b/justfile @@ -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)"`: