diff options
author | June McEnroe <june@causal.agency> | 2020-08-23 16:08:30 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-08-23 16:08:42 -0400 |
commit | 312645e6130c11ed97bc2468a59779824ff04917 (patch) | |
tree | 2c052af0367c0a9315452b12b5e02ad2f060b279 /home | |
parent | Update htop config serialization (diff) | |
download | src-312645e6130c11ed97bc2468a59779824ff04917.tar.gz src-312645e6130c11ed97bc2468a59779824ff04917.zip |
Add versions script
Diffstat (limited to '')
-rwxr-xr-x | home/.local/bin/versions | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/home/.local/bin/versions b/home/.local/bin/versions new file mode 100755 index 00000000..25e5ff72 --- /dev/null +++ b/home/.local/bin/versions @@ -0,0 +1,9 @@ +#!/bin/sh +set -u + +for repo in ~/src/git/*; do + version=$(git -C "${repo}" describe --dirty 2>/dev/null) + if [ $? -eq 0 ]; then + echo "${repo##*/}-${version#v}" + fi +done | sort -nr -t '-' -k 3 | column -t -s '-' |