Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
49e641be
Commit
49e641be
authored
Aug 11, 2022
by
yuangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused api
parent
df5eb323
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
26 deletions
+1
-26
include/git2/remote.h
+1
-1
include/git2/repository.h
+0
-11
src/libgit2/repository.c
+0
-14
No files found.
include/git2/remote.h
View file @
49e641be
...
@@ -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.
*/
*/
...
...
include/git2/repository.h
View file @
49e641be
...
@@ -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
...
...
src/libgit2/repository.c
View file @
49e641be
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment