summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryuangli <yuangli@mathworks.com>2022-08-11 09:32:28 +0100
committeryuangli <yuangli@mathworks.com>2022-08-11 09:32:28 +0100
commit49e641be8c5549f6f5731d6d72e9e6902e71d0e1 (patch)
treec337d5838c10e8e9a2f4b5aebe8d969a84f798ab
parentdf5eb3239b1419b3f4382d7bcca9a5d85611d7d3 (diff)
downloadlibgit2-49e641be8c5549f6f5731d6d72e9e6902e71d0e1.tar.gz
remove unused api
-rw-r--r--include/git2/remote.h2
-rw-r--r--include/git2/repository.h11
-rw-r--r--src/libgit2/repository.c14
3 files changed, 1 insertions, 26 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h
index 240e5aa4e..f1cee17aa 100644
--- a/include/git2/remote.h
+++ b/include/git2/remote.h
@@ -751,7 +751,7 @@ typedef struct {
int depth;
/**
- * Unshallow flag of the fetch to perform.
+ * Convert a shallow repository to a full repository.
*
* The default is 0, which means the flag is off.
*/
diff --git a/include/git2/repository.h b/include/git2/repository.h
index d6b054dc3..258b9ac00 100644
--- a/include/git2/repository.h
+++ b/include/git2/repository.h
@@ -924,17 +924,6 @@ GIT_EXTERN(const char *) git_repository_get_namespace(git_repository *repo);
GIT_EXTERN(int) git_repository_is_shallow(git_repository *repo);
/**
- * Determine the shallow roots of the repository
- *
- * This oidarray is owned by the library. Do not free it.
- *
- * @param out An array of shallow oids.
- * @param repo The repository
- * @return 0 on success, an error otherwise.
- */
-GIT_EXTERN(int) git_repository_shallow_roots(git_oidarray *out, git_repository *repo);
-
-/**
* Retrieve the configured identity to use for reflogs
*
* The memory is owned by the repository and must not be freed by the
diff --git a/src/libgit2/repository.c b/src/libgit2/repository.c
index 13559ef07..6b77007aa 100644
--- a/src/libgit2/repository.c
+++ b/src/libgit2/repository.c
@@ -3393,20 +3393,6 @@ on_error:
return error;
}
-int git_repository_shallow_roots(git_oidarray *out, git_repository *repo)
-{
- int ret;
- git_array_oid_t array = GIT_ARRAY_INIT;
-
- assert(out);
-
- ret = git_repository__shallow_roots(&array, repo);
-
- git_oidarray__from_array(out, &array);
-
- return ret;
-}
-
int git_repository_is_shallow(git_repository *repo)
{
git_str path = GIT_STR_INIT;