mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 20:42:23 +00:00
Modified test for revwalk_hidecb
This commit is contained in:
parent
892b7c9fef
commit
34ffe22344
@ -60,7 +60,7 @@ static int hide_none_cb(const git_oid *commit_id, void *data)
|
|||||||
/* Hide some commits */
|
/* Hide some commits */
|
||||||
static int hide_commit_cb(const git_oid *commit_id, void *data)
|
static int hide_commit_cb(const git_oid *commit_id, void *data)
|
||||||
{
|
{
|
||||||
if (0 == git_oid_cmp(commit_id, &commit_ids[3]))
|
if (0 == git_oid_cmp(commit_id, &commit_ids[5]))
|
||||||
return 1;
|
return 1;
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
@ -165,7 +165,7 @@ void test_revwalk_hidecb__hide_some_commits(void)
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
cl_assert_equal_i(i, 3);
|
cl_assert_equal_i(i, 4);
|
||||||
cl_assert_equal_i(error, GIT_ITEROVER);
|
cl_assert_equal_i(error, GIT_ITEROVER);
|
||||||
|
|
||||||
git_revwalk_free(walk);
|
git_revwalk_free(walk);
|
||||||
|
Loading…
Reference in New Issue
Block a user