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
9f723c97
Unverified
Commit
9f723c97
authored
Jun 26, 2019
by
Etienne Samson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: fixups
parent
b883d370
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
include/git2/sys/repository.h
+1
-1
src/odb.c
+1
-0
src/odb.h
+2
-1
No files found.
include/git2/sys/repository.h
View file @
9f723c97
...
...
@@ -39,7 +39,7 @@ GIT_EXTERN(int) git_repository_new(git_repository **out);
* There's no need to call this function directly unless you're
* trying to aggressively cleanup the repo before its
* deallocation. `git_repository_free` already performs this operation
* before deallocati
on
the repo.
* before deallocati
ng
the repo.
*/
GIT_EXTERN
(
void
)
git_repository__cleanup
(
git_repository
*
repo
);
...
...
src/odb.c
View file @
9f723c97
...
...
@@ -548,6 +548,7 @@ int git_odb__add_default_backends(
#else
if
(
p_stat
(
objects_dir
,
&
st
)
<
0
)
{
if
(
as_alternates
)
/* this should warn */
return
0
;
git_error_set
(
GIT_ERROR_ODB
,
"failed to load object database in '%s'"
,
objects_dir
);
...
...
src/odb.h
View file @
9f723c97
...
...
@@ -71,6 +71,7 @@ int git_odb__hashobj(git_oid *id, git_rawobj *obj);
* Format the object header such as it would appear in the on-disk object
*/
int
git_odb__format_object_header
(
size_t
*
out_len
,
char
*
hdr
,
size_t
hdr_size
,
git_off_t
obj_len
,
git_object_t
obj_type
);
/*
* Hash an open file descriptor.
* This is a performance call when the contents of a fd need to be hashed,
...
...
@@ -95,7 +96,7 @@ int git_odb__hashfd_filtered(
* symlink, then the raw contents of the symlink will be hashed. Otherwise,
* this will fallback to `git_odb__hashfd`.
*
* The hash type for this call is always `GIT_OBJ
I
ECT_BLOB` because
* The hash type for this call is always `GIT_OBJECT_BLOB` because
* symlinks may only point to blobs.
*/
int
git_odb__hashlink
(
git_oid
*
out
,
const
char
*
path
);
...
...
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