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
b794cbcd
Commit
b794cbcd
authored
Jan 30, 2014
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename conflict to collision to prevent confusion
parent
71ae7601
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/index.c
+2
-2
No files found.
src/index.c
View file @
b794cbcd
...
...
@@ -804,7 +804,7 @@ static int has_dir_name(git_index *index,
return
retval
;
}
static
int
check_file_directory_co
nflict
(
git_index
*
index
,
static
int
check_file_directory_co
llision
(
git_index
*
index
,
git_index_entry
*
entry
,
size_t
pos
,
int
ok_to_replace
)
{
int
retval
=
has_file_name
(
index
,
entry
,
pos
,
ok_to_replace
);
...
...
@@ -844,7 +844,7 @@ static int index_insert(git_index *index, git_index_entry *entry, int replace)
entry
->
mode
=
index_merge_mode
(
index
,
*
existing
,
entry
->
mode
);
}
if
(
check_file_directory_co
nflict
(
index
,
entry
,
position
,
replace
)
<
0
)
if
(
check_file_directory_co
llision
(
index
,
entry
,
position
,
replace
)
<
0
)
return
-
1
;
/* if replacing is not requested or no existing entry exists, just
...
...
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