diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-16 00:10:02 +0100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-16 00:55:14 +0100 |
| commit | e45350feab198e2e29559f7e30331e81ca4cba86 (patch) | |
| tree | d7a73f24f2d26c7273b3920104cef16ffc601e2c /include/git2 | |
| parent | 6574cd00763c57cef39ad3d0a9df323904d37864 (diff) | |
| download | libgit2-ethomson/to_from.tar.gz | |
tag: add underscore to `from` functionethomson/to_from
The majority of functions are named `from_something` (with an
underscore) instead of `fromsomething`. Update the tag function for
consistency with the rest of the library.
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/deprecated.h | 6 | ||||
| -rw-r--r-- | include/git2/tag.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/git2/deprecated.h b/include/git2/deprecated.h index 8e0966d6b..394072461 100644 --- a/include/git2/deprecated.h +++ b/include/git2/deprecated.h @@ -291,6 +291,12 @@ GIT_EXTERN(int) git_index_add_frombuffer( #define GIT_REF_FORMAT_REFSPEC_PATTERN GIT_REFERENCE_FORMAT_REFSPEC_PATTERN #define GIT_REF_FORMAT_REFSPEC_SHORTHAND GIT_REFERENCE_FORMAT_REFSPEC_SHORTHAND +GIT_EXTERN(int) git_tag_create_frombuffer( + git_oid *oid, + git_repository *repo, + const char *buffer, + int force); + /**@}*/ /** @name Deprecated Credential Callback Types diff --git a/include/git2/tag.h b/include/git2/tag.h index c2d490d26..4e5fe1db1 100644 --- a/include/git2/tag.h +++ b/include/git2/tag.h @@ -217,7 +217,7 @@ GIT_EXTERN(int) git_tag_annotation_create( * @param force Overwrite existing tags * @return 0 on success; error code otherwise */ -GIT_EXTERN(int) git_tag_create_frombuffer( +GIT_EXTERN(int) git_tag_create_from_buffer( git_oid *oid, git_repository *repo, const char *buffer, |
