summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libgit2.c1
-rw-r--r--tests/grafts/shallow.c10
-rw-r--r--tests/shallow/feature_flag.c11
3 files changed, 11 insertions, 11 deletions
diff --git a/src/libgit2.c b/src/libgit2.c
index b6d2f0a80..a4f0b4007 100644
--- a/src/libgit2.c
+++ b/src/libgit2.c
@@ -12,6 +12,7 @@
#include "cache.h"
#include "common.h"
#include "filter.h"
+#include "grafts.h"
#include "hash.h"
#include "index.h"
#include "merge_driver.h"
diff --git a/tests/grafts/shallow.c b/tests/grafts/shallow.c
index 8fe3421f2..ac1d686af 100644
--- a/tests/grafts/shallow.c
+++ b/tests/grafts/shallow.c
@@ -7,6 +7,16 @@
static git_repository *g_repo;
static git_oid g_shallow_oid;
+void test_grafts_shallow__set_feature_flag(void)
+{
+ cl_git_pass(git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 1));
+}
+
+void test_grafts_shallow__unset_feature_flag(void)
+{
+ cl_git_pass(git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 0));
+}
+
void test_grafts_shallow__initialize(void)
{
cl_git_pass(git_oid_fromstr(&g_shallow_oid, "be3563ae3f795b2b4353bcce3a527ad0a4f7f644"));
diff --git a/tests/shallow/feature_flag.c b/tests/shallow/feature_flag.c
deleted file mode 100644
index 25d283a44..000000000
--- a/tests/shallow/feature_flag.c
+++ /dev/null
@@ -1,11 +0,0 @@
-#include "clar_libgit2.h"
-
-void test_shallow_feature_flag__set_feature_flag(void)
-{
- cl_must_pass(git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 1));
-}
-
-void test_shallow_feature_flag__unset_feature_flag(void)
-{
- cl_must_pass(git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 0));
-}