]>
git.proxmox.com Git - libgit2.git/blob - src/repository.h
1 #ifndef INCLUDE_repository_h__
2 #define INCLUDE_repository_h__
4 #include "git2/common.h"
7 #include "git2/repository.h"
8 #include "git2/object.h"
10 #include "hashtable.h"
15 #define DOT_GIT ".git"
16 #define GIT_DIR DOT_GIT "/"
17 #define GIT_OBJECTS_DIR "objects/"
18 #define GIT_INDEX_FILE "index"
21 git_cached_obj cached
;
26 struct git_repository
{
31 git_refcache references
;
33 char *path_repository
;
39 unsigned int lru_counter
;
42 /* fully free the object; internal method, do not
44 void git_object__free(void *object
);
46 int git__parse_oid(git_oid
*oid
, const char **buffer_out
, const char *buffer_end
, const char *header
);
47 int git__write_oid(git_odb_stream
*src
, const char *header
, const git_oid
*oid
);