forked from AndreyG/libgit2cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtag.h
More file actions
31 lines (23 loc) · 601 Bytes
/
Copy pathtag.h
File metadata and controls
31 lines (23 loc) · 601 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
#pragma once
#include <git2/types.h>
#include <memory>
struct git_tag;
struct git_oid;
namespace git
{
struct Repository;
struct Object;
struct Tag
{
explicit Tag(git_tag *);
Object target(Repository const &) const;
git_oid const & target_id() const;
git_object_t target_type() const;
const char * name() const;
const char * message() const;
git_signature const * tagger() const;
private:
struct Destroy { void operator() (git_tag*) const; };
std::unique_ptr<git_tag, Destroy> tag_;
};
}