aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-11-30 10:25:20 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-11-30 10:25:20 +1300
commitcfd5fc1168b45600e9b06424fed581ec91362ed2 (patch)
treed109dd66ea405354e1ba28a155fc0c2230819c02
parentRename README.markdown to README.md (diff)
downloadwatch-vcs-tags-cfd5fc1168b45600e9b06424fed581ec91362ed2.tar.gz
watch-vcs-tags-cfd5fc1168b45600e9b06424fed581ec91362ed2.zip
Use full option names for git commands
-rwxr-xr-xwatch-git-tags4
1 files changed, 2 insertions, 2 deletions
diff --git a/watch-git-tags b/watch-git-tags
index 79e26d8..fd5b022 100755
--- a/watch-git-tags
+++ b/watch-git-tags
@@ -3,13 +3,13 @@ self=watch-git-tags
# List sorted local tags
lt() {
- git tag -l |
+ git tag --list |
LC_COLLATE=C sort
}
# List sorted remote tags
rt() {
- { git ls-remote -qt ||
+ { git ls-remote --quiet --tags ||
printf >&2 'Failed to retrieve tags for repository %s\n' "$PWD"
} | awk '!/\^\{\}$/{print substr($2,11)}' |
LC_COLLATE=C sort