]> gitweb.factorcode.org Git - factor.git/commitdiff
cli.git: add git-tag to get all the tags
authorDoug Coleman <doug.coleman@gmail.com>
Mon, 3 Apr 2023 03:57:53 +0000 (22:57 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 14 Apr 2023 04:18:02 +0000 (23:18 -0500)
extra/cli/git/git.factor

index 30a8b57f11876e3b74c571b7b41aa5aeb99a8b15..1c1549f1b37d42381f9fbe12db29f81516007366 100644 (file)
@@ -26,6 +26,8 @@ cli-git-num-parallel [ cpus 2 * ] initialize
 : git-fetch-and-reset-hard-HEAD ( path -- processes ) [ git-fetch-all-desc "HEAD" git-reset-hard-desc 2array run-processes ] with-directory ;
 : git-fetch-tags* ( -- process ) { "git" "fetch" "--tags" } run-process ;
 : git-fetch-tags ( path -- process ) [ git-fetch-tags* ] with-directory ;
+: git-tag* ( -- process ) { "git" "tag" } process-lines ;
+: git-tag ( path -- process ) [ git-tag* ] with-directory ;
 : git-checkout-new-branch* ( branch -- process ) [ { "git" "checkout" "-b" } ] dip suffix run-process ;
 : git-checkout-new-branch ( path branch -- process ) '[ _ git-checkout-new-branch* ] with-directory ;
 : git-checkout-existing* ( branch/checksum -- process ) [ { "git" "checkout" } ] dip suffix run-process ;