diff options
-rw-r--r-- | include/git2/describe.h | 2 | ||||
-rw-r--r-- | src/describe.c | 2 | ||||
-rw-r--r-- | tests/describe/describe.c | 2 | ||||
-rw-r--r-- | tests/describe/describe_helpers.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/include/git2/describe.h b/include/git2/describe.h index 8a00d258a..0a845f6be 100644 --- a/include/git2/describe.h +++ b/include/git2/describe.h @@ -55,7 +55,7 @@ typedef struct git_describe_opts { GIT_DESCRIBE_DEFAULT_MAX_CANDIDATES_TAGS, \ GIT_DESCRIBE_DEFAULT_ABBREVIATED_SIZE} -GIT_EXTERN(int) git_describe_object( +GIT_EXTERN(int) git_describe_commit( git_buf *out, git_object *committish, git_describe_opts *opts); diff --git a/src/describe.c b/src/describe.c index b503db761..c7b45d46f 100644 --- a/src/describe.c +++ b/src/describe.c @@ -626,7 +626,7 @@ static int normalize_options( /** TODO: Add git_object_describe_workdir(git_buf *, const char *dirty_suffix, git_describe_opts *); */ -int git_describe_object( +int git_describe_commit( git_buf *out, git_object *committish, git_describe_opts *opts) diff --git a/tests/describe/describe.c b/tests/describe/describe.c index fcd4486bc..a7f3c84df 100644 --- a/tests/describe/describe.c +++ b/tests/describe/describe.c @@ -39,7 +39,7 @@ void test_describe_describe__cannot_describe_against_a_repo_with_no_ref(void) cl_git_pass(git_reference_foreach(repo, delete_cb, NULL)); - cl_git_fail(git_describe_object(&buf, object, &opts)); + cl_git_fail(git_describe_commit(&buf, object, &opts)); git_object_free(object); git_buf_free(&buf); diff --git a/tests/describe/describe_helpers.c b/tests/describe/describe_helpers.c index aa2a54f9e..7235d320f 100644 --- a/tests/describe/describe_helpers.c +++ b/tests/describe/describe_helpers.c @@ -12,7 +12,7 @@ void assert_describe( cl_git_pass(git_revparse_single(&object, repo, revparse_spec)); - cl_git_pass(git_describe_object(&label, object, opts)); + cl_git_pass(git_describe_commit(&label, object, opts)); if (is_prefix_match) cl_assert_equal_i(0, git__prefixcmp(git_buf_cstr(&label), expected_output)); |