mirror of
https://git.proxmox.com/git/libgit2
synced 2026-08-26 20:08:02 +00:00
Get rid of redundant git_diff_options_init fn
Since git_diff_init_options was introduced, remove this old fn.
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ void test_diff_blob__initialize(void)
|
||||
|
||||
g_repo = cl_git_sandbox_init("attr");
|
||||
|
||||
cl_git_pass(git_diff_options_init(&opts, GIT_DIFF_OPTIONS_VERSION));
|
||||
cl_git_pass(git_diff_init_options(&opts, GIT_DIFF_OPTIONS_VERSION));
|
||||
opts.context_lines = 1;
|
||||
|
||||
memset(&expected, 0, sizeof(expected));
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ static diff_expects expect;
|
||||
|
||||
void test_diff_tree__initialize(void)
|
||||
{
|
||||
cl_git_pass(git_diff_options_init(&opts, GIT_DIFF_OPTIONS_VERSION));
|
||||
cl_git_pass(git_diff_init_options(&opts, GIT_DIFF_OPTIONS_VERSION));
|
||||
|
||||
memset(&expect, 0, sizeof(expect));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user