just: format

This commit is contained in:
Simon Michael 2023-12-09 00:29:21 -10:00
parent 74864f682e
commit b6531a516e

View File

@ -4,7 +4,6 @@
# https://just.systems/man/en/chapter_31.html Functions # https://just.systems/man/en/chapter_31.html Functions
# See also Makefile, Shake.hs # See also Makefile, Shake.hs
@help: @help:
just -lu just -lu
@ -159,9 +158,8 @@ _gitSwitchAutoCreate BRANCH:
# echo "wrote jargon.j" # echo "wrote jargon.j"
# Extract ledger/hledger/beancount commit stats to project-commits.j. # Extract ledger/hledger/beancount commit stats to project-commits.j.
# See also https://hledger.org/reporting-version-control-stats.html
@_projectcommits: @_projectcommits:
# https://hledger.org/reporting-version-control-stats.html
printf "account ledger\naccount hledger\naccount beancount\n\n" >project-commits.j printf "account ledger\naccount hledger\naccount beancount\n\n" >project-commits.j
for p in ledger hledger beancount; do git -C ../$p log --format="%cd (%h) %s%n ($p) 1%n" --date=short --reverse >> project-commits.j; done for p in ledger hledger beancount; do git -C ../$p log --format="%cd (%h) %s%n ($p) 1%n" --date=short --reverse >> project-commits.j; done
echo "wrote project-commits.j" echo "wrote project-commits.j"