Method: Rugged::TagCollection#delete
- Defined in:
- ext/rugged/rugged_tag_collection.c
#delete(name) ⇒ nil
Delete the tag reference identified by name
.
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'ext/rugged/rugged_tag_collection.c', line 72
static VALUE rb_git_tag_collection_delete(VALUE self, VALUE rb_name)
{
VALUE rb_repo = rugged_owner(self);
git_repository *repo;
int error;
rugged_check_repo(rb_repo);
Data_Get_Struct(rb_repo, git_repository, repo);
Check_Type(rb_name, T_STRING);
error = git_tag_delete(repo, StringValueCStr(rb_name));
rugged_exception_check(error);
return Qnil;
}
|