File tree 2 files changed +10
-2
lines changed 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2629,9 +2629,8 @@ int git_merge(
2629
2629
on_error :
2630
2630
merge_state_cleanup (repo );
2631
2631
2632
- git_index_free (index_new );
2633
-
2634
2632
done :
2633
+ git_index_free (index_new );
2635
2634
git_index_free (index_repo );
2636
2635
2637
2636
git_tree_free (ancestor_tree );
Original file line number Diff line number Diff line change @@ -48,18 +48,27 @@ void test_revwalk_hidecb__cleanup(void)
48
48
/* Hide all commits */
49
49
static int hide_every_commit_cb (const git_oid * commit_id , void * data )
50
50
{
51
+ GIT_UNUSED (commit_id );
52
+ GIT_UNUSED (data );
53
+
51
54
return 1 ;
52
55
}
53
56
54
57
/* Do not hide anything */
55
58
static int hide_none_cb (const git_oid * commit_id , void * data )
56
59
{
60
+ GIT_UNUSED (commit_id );
61
+ GIT_UNUSED (data );
62
+
57
63
return 0 ;
58
64
}
59
65
60
66
/* Hide some commits */
61
67
static int hide_commit_cb (const git_oid * commit_id , void * data )
62
68
{
69
+ GIT_UNUSED (commit_id );
70
+ GIT_UNUSED (data );
71
+
63
72
if (0 == git_oid_cmp (commit_id , & commit_ids [5 ]))
64
73
return 1 ;
65
74
else
You can’t perform that action at this time.
0 commit comments