]>
Commit | Line | Data |
---|---|---|
bb742ede | 1 | /* |
5e0de328 | 2 | * Copyright (C) 2009-2012 the libgit2 contributors |
bb742ede VM |
3 | * |
4 | * This file is part of libgit2, distributed under the GNU GPL v2 with | |
5 | * a Linking Exception. For full terms see the included COPYING file. | |
6 | */ | |
27df4275 MS |
7 | #ifndef INCLUDE_reflog_h__ |
8 | #define INCLUDE_reflog_h__ | |
9 | ||
10 | #include "common.h" | |
11 | #include "git2/reflog.h" | |
12 | #include "vector.h" | |
13 | ||
14 | #define GIT_REFLOG_DIR "logs/" | |
ce8cd006 | 15 | #define GIT_REFLOG_DIR_MODE 0777 |
01ad7b3a | 16 | #define GIT_REFLOG_FILE_MODE 0666 |
27df4275 MS |
17 | |
18 | #define GIT_REFLOG_SIZE_MIN (2*GIT_OID_HEXSZ+2+17) | |
19 | ||
7c458e3a | 20 | #define GIT_OID_HEX_ZERO "0000000000000000000000000000000000000000" |
21 | ||
27df4275 | 22 | struct git_reflog_entry { |
e7be57a9 MS |
23 | git_oid oid_old; |
24 | git_oid oid_cur; | |
27df4275 MS |
25 | |
26 | git_signature *committer; | |
27 | ||
28 | char *msg; | |
29 | }; | |
30 | ||
31 | struct git_reflog { | |
32 | char *ref_name; | |
33 | git_vector entries; | |
34 | }; | |
35 | ||
36 | #endif /* INCLUDE_reflog_h__ */ |