Commit 49e641be by yuangli

remove unused api

parent df5eb323
...@@ -751,7 +751,7 @@ typedef struct { ...@@ -751,7 +751,7 @@ typedef struct {
int depth; 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. * The default is 0, which means the flag is off.
*/ */
......
...@@ -924,17 +924,6 @@ GIT_EXTERN(const char *) git_repository_get_namespace(git_repository *repo); ...@@ -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); 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 * Retrieve the configured identity to use for reflogs
* *
* The memory is owned by the repository and must not be freed by the * The memory is owned by the repository and must not be freed by the
......
...@@ -3393,20 +3393,6 @@ on_error: ...@@ -3393,20 +3393,6 @@ on_error:
return 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) int git_repository_is_shallow(git_repository *repo)
{ {
git_str path = GIT_STR_INIT; git_str path = GIT_STR_INIT;
......
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