;tools: just: cleanups (still applicable to master)
This commit is contained in:
parent
2ee2d29f2b
commit
4f5a3b06ca
28
Justfile
28
Justfile
@ -1221,20 +1221,6 @@ tags:
|
|||||||
@showrelnotes VER:
|
@showrelnotes VER:
|
||||||
awk "/^## .*-${VER//./\\.}$/ {p=1;print;next}; /^## / {p=0}; p" doc/relnotes.md
|
awk "/^## .*-${VER//./\\.}$/ {p=1;print;next}; /^## / {p=0}; p" doc/relnotes.md
|
||||||
|
|
||||||
# show a precise git-describe version string
|
|
||||||
@describe:
|
|
||||||
git describe --tags --match 'hledger-[0-9]*' --dirty
|
|
||||||
|
|
||||||
# show all commit author names
|
|
||||||
@authors:
|
|
||||||
echo "Commit authors ($(git shortlog -sn | wc -l | awk '{print $1}'))":
|
|
||||||
git shortlog -sn
|
|
||||||
|
|
||||||
# show all commit author names and emails
|
|
||||||
@authorsv:
|
|
||||||
echo "Commit authors ($(git shortlog -sn | wc -l | awk '{print $1}'))":
|
|
||||||
git shortlog -sne
|
|
||||||
|
|
||||||
SCC := 'scc -z --cocomo-project-type semi-detached -f wide -s code'
|
SCC := 'scc -z --cocomo-project-type semi-detached -f wide -s code'
|
||||||
|
|
||||||
# count lines of code with scc
|
# count lines of code with scc
|
||||||
@ -1490,6 +1476,20 @@ _gitSwitchAutoCreate BRANCH:
|
|||||||
git switch -c {{ BRANCH }}
|
git switch -c {{ BRANCH }}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# show a precise git-describe version string
|
||||||
|
@describe:
|
||||||
|
git describe --tags --match 'hledger-[0-9]*' --dirty
|
||||||
|
|
||||||
|
# show all commit author names
|
||||||
|
@authors:
|
||||||
|
echo "Commit authors ($(git shortlog -sn | wc -l | awk '{print $1}'))":
|
||||||
|
git shortlog -sn
|
||||||
|
|
||||||
|
# show all commit author names and emails
|
||||||
|
@authorsv:
|
||||||
|
echo "Commit authors ($(git shortlog -sn | wc -l | awk '{print $1}'))":
|
||||||
|
git shortlog -sne
|
||||||
|
|
||||||
# Check that we're on a release branch. (Hopefully the latest.)
|
# Check that we're on a release branch. (Hopefully the latest.)
|
||||||
_on-release-branch:
|
_on-release-branch:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user