From 0b5ba0d744e69da5dc8c08d167c83dd87ed83af2 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Thu, 6 Jun 2019 16:36:23 -0400 Subject: Rename opt init functions to `options_init` In libgit2 nomenclature, when we need to verb a direct object, we name a function `git_directobject_verb`. Thus, if we need to init an options structure named `git_foo_options`, then the name of the function that does that should be `git_foo_options_init`. The previous names of `git_foo_init_options` is close - it _sounds_ as if it's initializing the options of a `foo`, but in fact `git_foo_options` is its own noun that should be respected. Deprecate the old names; they'll now call directly to the new ones. --- tests/diff/blob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/diff/blob.c') diff --git a/tests/diff/blob.c b/tests/diff/blob.c index 37898adcf..bebe6db27 100644 --- a/tests/diff/blob.c +++ b/tests/diff/blob.c @@ -39,7 +39,7 @@ void test_diff_blob__initialize(void) g_repo = cl_git_sandbox_init("attr"); - cl_git_pass(git_diff_init_options(&opts, GIT_DIFF_OPTIONS_VERSION)); + cl_git_pass(git_diff_options_init(&opts, GIT_DIFF_OPTIONS_VERSION)); opts.context_lines = 1; memset(&expected, 0, sizeof(expected)); -- cgit v1.2.1