-
-
Notifications
You must be signed in to change notification settings - Fork 401
Expand file tree
/
Copy pathattr.h
More file actions
31 lines (26 loc) · 895 Bytes
/
attr.h
File metadata and controls
31 lines (26 loc) · 895 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
#define GIT_ATTR_CHECK_FILE_THEN_INDEX 0
#define GIT_ATTR_CHECK_INDEX_THEN_FILE 1
#define GIT_ATTR_CHECK_INDEX_ONLY 2
#define GIT_ATTR_CHECK_NO_SYSTEM 4
#define GIT_ATTR_CHECK_INCLUDE_HEAD 8
#define GIT_ATTR_CHECK_INCLUDE_COMMIT 16
#define GIT_ATTR_OPTIONS_VERSION ...
typedef enum {
GIT_ATTR_VALUE_UNSPECIFIED = 0, /**< The attribute has been left unspecified */
GIT_ATTR_VALUE_TRUE, /**< The attribute has been set */
GIT_ATTR_VALUE_FALSE, /**< The attribute has been unset */
GIT_ATTR_VALUE_STRING /**< This attribute has a value */
} git_attr_value_t;
typedef struct {
unsigned int version;
unsigned int flags;
git_oid *commit_id;
git_oid attr_commit_id;
} git_attr_options;
int git_attr_get_ext(
const char **value_out,
git_repository *repo,
git_attr_options *opts,
const char *path,
const char *name);
git_attr_value_t git_attr_value(const char *attr);