commit 07666488c025abb196fe4f6add88dbdc5a89a46c
Author: Elan Ruusamäe <[email protected]>
Date:   Sun Aug 12 20:32:17 2012 +0300

    no need to separate sub for simple tag expansion

 builder.bash-completion | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/builder.bash-completion b/builder.bash-completion
index a20c219..eb80e88 100644
--- a/builder.bash-completion
+++ b/builder.bash-completion
@@ -1,11 +1,4 @@
-# builder(1) completion
-
-# retrieve tags/branches from current spec
-_builder_spec_tags() {
-       local cur=$1 spec=$2 res
-       res=$(git tag)
-       COMPREPLY=( $( compgen -W "$res" -- "$cur" ) )
-}
+# PLD Linux builder(1) script completion
 
 _builder()
 {
@@ -15,7 +8,7 @@ _builder()
        case $prev in
        -r)
                local spec=*.spec
-               _builder_spec_tags $cur $spec
+               COMPREPLY=( $( compgen -W '$( git tag )' -- "$cur" ) )
                return 0
                ;;
        --with|--without)
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to