Method: Rugged::TagCollection#each

Defined in:
ext/rugged/rugged_tag_collection.c

#each([pattern]) {|name| ... } ⇒ nil #each([pattern]) ⇒ Object

Iterate through all the tags in repo. Iteration can be optionally filtered to the ones matching the given pattern, a standard Unix filename glob.

If pattern is empty or not given, all tag names will be returned.

The given block will be called once with the name for each tag.

If no block is given, an enumerator will be returned.

Overloads:

  • #each([pattern]) {|name| ... } ⇒ nil

    Yields:

    • (name)

    Returns:

    • (nil)
[View source]

306
307
308
309
# File 'ext/rugged/rugged_tag_collection.c', line 306

static VALUE rb_git_tag_collection_each(int argc, VALUE *argv, VALUE self)
{
	return each_tag(argc, argv, self, 0);
}