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
98eaf39a
Commit
98eaf39a
authored
Nov 13, 2013
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings
parent
cfd16ca2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
src/merge.c
+3
-1
src/netops.c
+1
-1
src/push.c
+2
-2
tests-clar/merge/workdir/setup.c
+2
-1
No files found.
src/merge.c
View file @
98eaf39a
...
...
@@ -1649,7 +1649,7 @@ static int write_merge_head(
goto
cleanup
;
for
(
i
=
0
;
i
<
heads_len
;
i
++
)
{
if
((
error
=
git_filebuf_printf
(
&
file
,
"%s
\n
"
,
&
heads
[
i
]
->
oid_str
))
<
0
)
if
((
error
=
git_filebuf_printf
(
&
file
,
"%s
\n
"
,
heads
[
i
]
->
oid_str
))
<
0
)
goto
cleanup
;
}
...
...
@@ -2240,6 +2240,8 @@ static int merge_check_workdir(size_t *conflicts, git_repository *repo, git_inde
git_diff_options
opts
=
GIT_DIFF_OPTIONS_INIT
;
int
error
=
0
;
GIT_UNUSED
(
index_new
);
*
conflicts
=
0
;
opts
.
flags
|=
GIT_DIFF_INCLUDE_UNTRACKED
;
...
...
src/netops.c
View file @
98eaf39a
...
...
@@ -662,7 +662,7 @@ void gitno_connection_data_free_ptrs(gitno_connection_data *d)
static
char
*
unescape
(
char
*
str
)
{
int
x
,
y
;
size_t
len
=
strlen
(
str
);
int
len
=
(
int
)
strlen
(
str
);
for
(
x
=
y
=
0
;
str
[
y
];
++
x
,
++
y
)
{
if
((
str
[
x
]
=
str
[
y
])
==
'%'
)
{
...
...
src/push.c
View file @
98eaf39a
...
...
@@ -618,7 +618,7 @@ on_error:
static
int
filter_refs
(
git_remote
*
remote
)
{
git_remote_head
**
heads
;
const
git_remote_head
**
heads
;
size_t
heads_len
,
i
;
git_vector_clear
(
&
remote
->
refs
);
...
...
@@ -627,7 +627,7 @@ static int filter_refs(git_remote *remote)
return
-
1
;
for
(
i
=
0
;
i
<
heads_len
;
i
++
)
{
if
(
git_vector_insert
(
&
remote
->
refs
,
heads
[
i
])
<
0
)
if
(
git_vector_insert
(
&
remote
->
refs
,
(
void
*
)
heads
[
i
])
<
0
)
return
-
1
;
}
...
...
tests-clar/merge/workdir/setup.c
View file @
98eaf39a
...
...
@@ -1041,7 +1041,8 @@ void test_merge_workdir_setup__removed_after_failure(void)
cl_git_rewritefile
(
"merge-resolve/new-in-octo1.txt"
,
"Conflicting file!
\n\n
Merge will fail!
\n
"
);
cl_git_fail
(
git_merge
(
&
result
,
repo
,
&
their_heads
[
0
],
1
,
&
opts
));
cl_git_fail
(
git_merge
(
&
result
,
repo
,
(
const
git_merge_head
**
)
&
their_heads
[
0
],
1
,
&
opts
));
cl_assert
(
!
git_path_exists
(
"merge-resolve/"
GIT_MERGE_HEAD_FILE
));
cl_assert
(
!
git_path_exists
(
"merge-resolve/"
GIT_ORIG_HEAD_FILE
));
...
...
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