summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--git.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/git.h b/git.h
index b1e4828..991eaa5 100644
--- a/git.h
+++ b/git.h
@@ -126,2 +126,15 @@ static inline ssize_t xwrite(int fd, const void *buf, size_t len)
126 126
127enum object_type {
128 OBJ_NONE = 0,
129 OBJ_COMMIT = 1,
130 OBJ_TREE = 2,
131 OBJ_BLOB = 3,
132 OBJ_TAG = 4,
133 /* 5 for future expansion */
134 OBJ_OFS_DELTA = 6,
135 OBJ_REF_DELTA = 7,
136 OBJ_BAD,
137};
138
139
127/* Convert to/from hex/sha1 representation */ 140/* Convert to/from hex/sha1 representation */
@@ -230,2 +243,4 @@ extern void free_grep_patterns(struct grep_opt *opt);
230 243
244extern const char *type_names[9];
245
231struct object_list { 246struct object_list {
@@ -346,2 +361,21 @@ typedef void* (*topo_sort_get_fn_t)(struct commit*);
346/* 361/*
362 * from git:tag.h
363 */
364
365extern const char *tag_type;
366
367struct tag {
368 struct object object;
369 struct object *tagged;
370 char *tag;
371 char *signature; /* not actually implemented */
372};
373
374extern struct tag *lookup_tag(const unsigned char *sha1);
375extern int parse_tag_buffer(struct tag *item, void *data, unsigned long size);
376extern int parse_tag(struct tag *item);
377extern struct object *deref_tag(struct object *, const char *, int);
378
379
380/*
347 * from git:diffcore.h 381 * from git:diffcore.h