class Agate::TagCollection

Overview

A collection of tags in a repository.

Included Modules

Defined in:

agate/tag.cr

Instance Method Summary

Instance Method Detail

def create(name : String, target : Object, tagger : Signature, message : String) : OID #

Creates an annotated tag.


[View source]
def create_lightweight(name : String, target : Object, force = false) : OID #

Creates a lightweight tag (no tag object, just a reference).


[View source]
def delete(name : String) : Nil #

Deletes a tag by name.


[View source]
def each(pattern : String, & : String -> ) : Nil #

Lists tag names matching a pattern.


[View source]
def each(& : String -> ) : Nil #

Lists all tag names.


[View source]
def exist?(name : String) : Bool #

Returns true if a tag with the given name exists.


[View source]