diff options
author | Erich Eckner <git@eckner.net> | 2021-02-04 09:15:11 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-02-04 09:15:11 +0100 |
commit | 9d23d9a61125585f7e5e67b6e9f3f948ce6df0ef (patch) | |
tree | 421d4a71f87ce21aff961f9f3c1cf0f5743c3f20 /manualPorts/gitstats/lastVersion.sh | |
parent | 1e6c7b207c8edbdf356ef18c69ab0e5a58d793aa (diff) | |
download | crux-ports-9d23d9a61125585f7e5e67b6e9f3f948ce6df0ef.tar.xz |
renamed gitstats-git -> gitstats
Diffstat (limited to 'manualPorts/gitstats/lastVersion.sh')
-rwxr-xr-x | manualPorts/gitstats/lastVersion.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/manualPorts/gitstats/lastVersion.sh b/manualPorts/gitstats/lastVersion.sh new file mode 100755 index 0000000..b068966 --- /dev/null +++ b/manualPorts/gitstats/lastVersion.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +git -C /usr/src/github/gitstats fetch --all -p >/dev/null 2>&1 + +printf '%s.%s\n' \ + "$(git -C /usr/src/github/gitstats rev-list --count origin/master)" \ + "$(git -C /usr/src/github/gitstats rev-parse --short origin/master)" |