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
2b848e47
Commit
2b848e47
authored
Mar 26, 2014
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Decorate unused params as unused in revwalk::hidecb tests
parent
dc7efa1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
tests/revwalk/hidecb.c
+9
-0
No files found.
tests/revwalk/hidecb.c
View file @
2b848e47
...
...
@@ -48,18 +48,27 @@ void test_revwalk_hidecb__cleanup(void)
/* Hide all commits */
static
int
hide_every_commit_cb
(
const
git_oid
*
commit_id
,
void
*
data
)
{
GIT_UNUSED
(
commit_id
);
GIT_UNUSED
(
data
);
return
1
;
}
/* Do not hide anything */
static
int
hide_none_cb
(
const
git_oid
*
commit_id
,
void
*
data
)
{
GIT_UNUSED
(
commit_id
);
GIT_UNUSED
(
data
);
return
0
;
}
/* Hide some commits */
static
int
hide_commit_cb
(
const
git_oid
*
commit_id
,
void
*
data
)
{
GIT_UNUSED
(
commit_id
);
GIT_UNUSED
(
data
);
if
(
0
==
git_oid_cmp
(
commit_id
,
&
commit_ids
[
5
]))
return
1
;
else
...
...
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