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
31f6b529
Commit
31f6b529
authored
Jun 15, 2018
by
Patrick Steinhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tree: remove unused function `git_tree_entry_icmp`
parent
c103616f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
src/tree.c
+0
-8
src/tree.h
+0
-2
No files found.
src/tree.c
View file @
31f6b529
...
...
@@ -74,14 +74,6 @@ int git_tree_entry_cmp(const git_tree_entry *e1, const git_tree_entry *e2)
return
entry_sort_cmp
(
e1
,
e2
);
}
int
git_tree_entry_icmp
(
const
git_tree_entry
*
e1
,
const
git_tree_entry
*
e2
)
{
return
git_path_cmp
(
e1
->
filename
,
e1
->
filename_len
,
git_tree_entry__is_tree
(
e1
),
e2
->
filename
,
e2
->
filename_len
,
git_tree_entry__is_tree
(
e2
),
git__strncasecmp
);
}
/**
* Allocate a new self-contained entry, with enough space after it to
* store the filename and the id.
...
...
src/tree.h
View file @
31f6b529
...
...
@@ -39,8 +39,6 @@ GIT_INLINE(bool) git_tree_entry__is_tree(const struct git_tree_entry *e)
return
(
S_ISDIR
(
e
->
attr
)
&&
!
S_ISGITLINK
(
e
->
attr
));
}
extern
int
git_tree_entry_icmp
(
const
git_tree_entry
*
e1
,
const
git_tree_entry
*
e2
);
void
git_tree__free
(
void
*
tree
);
int
git_tree__parse
(
void
*
tree
,
git_odb_object
*
obj
);
...
...
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