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
cb53669e
Commit
cb53669e
authored
Mar 01, 2013
by
Philip Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename function to __ prefix
parent
3f0d0c85
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/index.c
+2
-2
src/index.h
+1
-1
src/tree.c
+3
-3
No files found.
src/index.c
View file @
cb53669e
...
...
@@ -242,7 +242,7 @@ static unsigned int index_merge_mode(
return
index_create_mode
(
mode
);
}
void
git_index_set_ignore_case
(
git_index
*
index
,
bool
ignore_case
)
void
git_index_
_
set_ignore_case
(
git_index
*
index
,
bool
ignore_case
)
{
index
->
ignore_case
=
ignore_case
;
...
...
@@ -390,7 +390,7 @@ int git_index_set_caps(git_index *index, unsigned int caps)
}
if
(
old_ignore_case
!=
index
->
ignore_case
)
{
git_index_set_ignore_case
(
index
,
index
->
ignore_case
);
git_index_
_
set_ignore_case
(
index
,
index
->
ignore_case
);
}
return
0
;
...
...
src/index.h
View file @
cb53669e
...
...
@@ -48,7 +48,7 @@ extern size_t git_index__prefix_position(git_index *index, const char *path);
extern
int
git_index_entry__cmp
(
const
void
*
a
,
const
void
*
b
);
extern
int
git_index_entry__cmp_icase
(
const
void
*
a
,
const
void
*
b
);
extern
void
git_index_set_ignore_case
(
git_index
*
index
,
bool
ignore_case
);
extern
void
git_index_
_
set_ignore_case
(
git_index
*
index
,
bool
ignore_case
);
extern
int
git_index_read_tree_match
(
git_index
*
index
,
git_tree
*
tree
,
git_strarray
*
strspec
);
...
...
src/tree.c
View file @
cb53669e
...
...
@@ -582,19 +582,19 @@ int git_tree__write_index(
}
/* The tree cache didn't help us; we'll have to write
* out a tree. If the index is ignore_case, we
'll
must
* out a tree. If the index is ignore_case, we must
* make it case-sensitive for the duration of the tree-write
* operation. */
if
(
index
->
ignore_case
)
{
old_ignore_case
=
true
;
git_index_set_ignore_case
(
index
,
false
);
git_index_
_
set_ignore_case
(
index
,
false
);
}
ret
=
write_tree
(
oid
,
repo
,
index
,
""
,
0
);
if
(
old_ignore_case
)
git_index_set_ignore_case
(
index
,
true
);
git_index_
_
set_ignore_case
(
index
,
true
);
return
ret
<
0
?
ret
:
0
;
}
...
...
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