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
83f71b12
Commit
83f71b12
authored
Jul 26, 2022
by
yuangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix build errors
parent
52ba17f3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
4 deletions
+5
-4
.gitignore
+1
-0
include/git2/common.h
+1
-1
src/libgit2/grafts.c
+0
-0
src/libgit2/grafts.h
+0
-0
src/libgit2/repository.c
+3
-3
No files found.
.gitignore
View file @
83f71b12
...
...
@@ -6,3 +6,4 @@
CMakeSettings.json
.vs
.idea
.cache
include/git2/common.h
View file @
83f71b12
...
...
@@ -227,7 +227,7 @@ typedef enum {
GIT_OPT_GET_EXTENSIONS
,
GIT_OPT_SET_EXTENSIONS
,
GIT_OPT_GET_OWNER_VALIDATION
,
GIT_OPT_SET_OWNER_VALIDATION
GIT_OPT_SET_OWNER_VALIDATION
,
GIT_OPT_ENABLE_SHALLOW
}
git_libgit2_opt_t
;
...
...
src/grafts.c
→
src/
libgit2/
grafts.c
View file @
83f71b12
File moved
src/grafts.h
→
src/
libgit2/
grafts.h
View file @
83f71b12
File moved
src/libgit2/repository.c
View file @
83f71b12
...
...
@@ -736,13 +736,13 @@ static int load_grafts(git_repository *repo)
int
error
;
if
((
error
=
git_repository_item_path
(
&
path
,
repo
,
GIT_REPOSITORY_ITEM_INFO
))
<
0
||
(
error
=
git_
buf
_joinpath
(
&
path
,
path
.
ptr
,
"grafts"
))
<
0
||
(
error
=
git_
str
_joinpath
(
&
path
,
path
.
ptr
,
"grafts"
))
<
0
||
(
error
=
git_grafts_from_file
(
&
repo
->
grafts
,
path
.
ptr
))
<
0
)
goto
error
;
git_
buf
_clear
(
&
path
);
git_
str
_clear
(
&
path
);
if
((
error
=
git_
buf
_joinpath
(
&
path
,
repo
->
gitdir
,
"shallow"
))
<
0
||
if
((
error
=
git_
str
_joinpath
(
&
path
,
repo
->
gitdir
,
"shallow"
))
<
0
||
(
error
=
git_grafts_from_file
(
&
repo
->
shallow_grafts
,
path
.
ptr
))
<
0
)
goto
error
;
...
...
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