Commit 562246b4 by Yuang Li

move declaration of feature flag to graft.h/graft.c

parent 89494f67
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
#include "oidarray.h" #include "oidarray.h"
#include "parse.h" #include "parse.h"
bool git_cache__enabled = true;
struct git_grafts { struct git_grafts {
/* Map of `git_commit_graft`s */ /* Map of `git_commit_graft`s */
git_oidmap *commits; git_oidmap *commits;
......
...@@ -19,6 +19,8 @@ typedef struct { ...@@ -19,6 +19,8 @@ typedef struct {
typedef struct git_grafts git_grafts; typedef struct git_grafts git_grafts;
extern bool git_shallow__enabled;
int git_grafts_new(git_grafts **out); int git_grafts_new(git_grafts **out);
int git_grafts_from_file(git_grafts **out, const char *path); int git_grafts_from_file(git_grafts **out, const char *path);
void git_grafts_free(git_grafts *grafts); void git_grafts_free(git_grafts *grafts);
......
#include "common.h"
extern bool git_shallow__enabled;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment