-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathtag.cpp
More file actions
52 lines (41 loc) · 931 Bytes
/
Copy pathtag.cpp
File metadata and controls
52 lines (41 loc) · 931 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#include "git2cpp/tag.h"
#include "git2cpp/object.h"
#include <git2/tag.h>
#include <utility>
namespace git
{
Tag::Tag(git_tag * tag)
: tag_(tag)
{
}
void Tag::Destroy::operator()(git_tag* tag) const
{
git_tag_free(tag);
}
Object Tag::target(Repository const & repo) const
{
git_object * obj;
git_tag_target(&obj, tag_.get());
return Object(obj, repo);
}
git_oid const & Tag::target_id() const
{
return *git_tag_target_id(tag_.get());
}
git_object_t Tag::target_type() const
{
return git_tag_target_type(tag_.get());
}
const char * Tag::name() const
{
return git_tag_name(tag_.get());
}
const char * Tag::message() const
{
return git_tag_message(tag_.get());
}
git_signature const * Tag::tagger() const
{
return git_tag_tagger(tag_.get());
}
}