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
f0d08b7c
Commit
f0d08b7c
authored
Mar 23, 2011
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove `git_repository_gc` from the headers
parent
b0b83135
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
include/git2/repository.h
+6
-10
No files found.
include/git2/repository.h
View file @
f0d08b7c
...
@@ -155,21 +155,17 @@ GIT_EXTERN(int) git_repository_index(git_index **index, git_repository *repo);
...
@@ -155,21 +155,17 @@ GIT_EXTERN(int) git_repository_index(git_index **index, git_repository *repo);
/**
/**
* Free a previously allocated repository
* Free a previously allocated repository
*
*
* Note that after a repository is free'd, all the objects it has spawned
* will still exist until they are manually closed by the user
* with `git_object_close`, but accessing any of the attributes of
* an object without a backing repository will result in undefined
* behavior
*
* @param repo repository handle to close. If NULL nothing occurs.
* @param repo repository handle to close. If NULL nothing occurs.
*/
*/
GIT_EXTERN
(
void
)
git_repository_free
(
git_repository
*
repo
);
GIT_EXTERN
(
void
)
git_repository_free
(
git_repository
*
repo
);
/**
/**
* Force a garbage collector pass on the repository
*
* This will force-free any cached objects that have been
* previously marked by the user as closed (`git_object_close`).
*
* @param repo repository handle to collect. If NULL nothing occurs.
*/
GIT_EXTERN
(
int
)
git_repository_gc
(
git_repository
*
repo
);
/**
* Creates a new Git repository in the given folder.
* Creates a new Git repository in the given folder.
*
*
* TODO:
* TODO:
...
...
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