Sha256: 4bab6b1cbf3244a1618a23c63e58b4b3f0c26964822cad697a246713321101fa
Contents?: true
Size: 475 Bytes
Versions: 1
Compression:
Stored size: 475 Bytes
Contents
# coding: utf-8 # # 存在するタグのリストを作る # module Githelp def tags(force=false,argv=ARGV) # # 引数の中にタグ名とマッチするものがあればタグリストを取得 # list = `git tag`.split(/\n/) matched = false list.each { |tag| args.each { |arg| matched = true if tag.match arg } } if (argv.length > 0 && matched) || force list else ['##DUMMYTAG##'] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
githelp-0.1.0 | lib/githelp/tags.rb |