#include "git2/oid.h"
#include <ctype.h>
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
const char *git_attr__true = "[internal]__TRUE__";
const char *git_attr__false = "[internal]__FALSE__";
#include "sysdir.h"
#include "ignore.h"
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
GIT_INLINE(int) attr_cache_lock(git_attr_cache *cache)
{
#include "pool.h"
#include "strmap.h"
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
/* See docs/checkout-internals.md for more information */
GIT_COMMIT_GETTER(git_time_t, time, commit->committer->when.time)
GIT_COMMIT_GETTER(int, time_offset, commit->committer->when.offset)
GIT_COMMIT_GETTER(unsigned int, parentcount, (unsigned int)git_array_size(commit->parent_ids))
-GIT_COMMIT_GETTER(const git_oid *, tree_id, &commit->tree_id);
+GIT_COMMIT_GETTER(const git_oid *, tree_id, &commit->tree_id)
const char *git_commit_message(const git_commit *commit)
{
#include <sys/types.h>
#include <regex.h>
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
typedef struct cvar_t {
struct cvar_t *next;
#include "config.h"
#include "repository.h"
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
typedef enum {
DIFF_DRIVER_AUTO = 0,
#include "win32/findfile.h"
#endif
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
int git_futils_mkpath2file(const char *file_path, const mode_t mode)
{
#include "strmap.h"
#include "pack.h"
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
#define DEFAULT_WINDOW_SIZE \
(sizeof(void*) >= 8 \
#include "git2/types.h"
#include "git2/pack.h"
-GIT__USE_OIDMAP;
+GIT__USE_OIDMAP
struct memobject {
git_oid oid;
#define kfree git__free
#include "khash.h"
-__KHASH_TYPE(off, git_off_t, void *);
+__KHASH_TYPE(off, git_off_t, void *)
typedef khash_t(off) git_offmap;
#define GIT__USE_OFFMAP \
- __KHASH_IMPL(off, static kh_inline, git_off_t, void *, 1, kh_int64_hash_func, kh_int64_hash_equal);
+ __KHASH_IMPL(off, static kh_inline, git_off_t, void *, 1, kh_int64_hash_func, kh_int64_hash_equal)
#define git_offmap_alloc() kh_init(off)
#define git_offmap_free(h) kh_destroy(off, h), h = NULL
#define kfree git__free
#include "khash.h"
-__KHASH_TYPE(oid, const git_oid *, void *);
+__KHASH_TYPE(oid, const git_oid *, void *)
typedef khash_t(oid) git_oidmap;
GIT_INLINE(khint_t) git_oidmap_hash(const git_oid *oid)
#include "offmap.h"
-GIT__USE_OFFMAP;
-GIT__USE_OIDMAP;
+GIT__USE_OFFMAP
+GIT__USE_OIDMAP
#define GIT_PACK_CACHE_MEMORY_LIMIT 16 * 1024 * 1024
#define GIT_PACK_CACHE_SIZE_LIMIT 1024 * 1024 /* don't bother caching anything over 1MB */
#include <git2/sys/refs.h>
#include <git2/sys/reflog.h>
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
#define DEFAULT_NESTING_LEVEL 5
#define MAX_NESTING_LEVEL 10
#include <git2/signature.h>
#include <git2/commit.h>
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
#define DEFAULT_NESTING_LEVEL 5
#define MAX_NESTING_LEVEL 10
#include "pool.h"
#include "vector.h"
-GIT__USE_OIDMAP;
+GIT__USE_OIDMAP
struct git_revwalk {
git_repository *repo;
#include "sortedcache.h"
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
int git_sortedcache_new(
git_sortedcache **out,
#define kfree git__free
#include "khash.h"
-__KHASH_TYPE(str, const char *, void *);
+__KHASH_TYPE(str, const char *, void *)
typedef khash_t(str) git_strmap;
typedef khiter_t git_strmap_iter;
__KHASH_IMPL(
str, static kh_inline, const char *, void *, 1,
- str_hash_no_trailing_slash, str_equal_no_trailing_slash);
+ str_hash_no_trailing_slash, str_equal_no_trailing_slash)
static int submodule_cache_init(git_repository *repo, int refresh);
static void submodule_cache_free(git_submodule_cache *cache);
#include "git2/sys/refs.h"
#include "git2/sys/refdb_backend.h"
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
typedef struct {
const char *name;
#define DEFAULT_TREE_SIZE 16
#define MAX_FILEMODE_BYTES 6
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
static bool valid_filemode(const int filemode)
{
#include "clar_libgit2.h"
#include "oidmap.h"
-GIT__USE_OIDMAP;
+GIT__USE_OIDMAP
typedef struct {
git_oid oid;
#include "clar_libgit2.h"
#include "strmap.h"
-GIT__USE_STRMAP;
+GIT__USE_STRMAP
git_strmap *g_table;