diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-08 19:25:36 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-16 00:55:14 +0100 |
commit | 6574cd00763c57cef39ad3d0a9df323904d37864 (patch) | |
tree | 8522b98c50810088dd388ccaecd8cfbed7e9f5b6 /src | |
parent | 08f392080cfd7e08972820d8147dc06432e7c4bf (diff) | |
download | libgit2-6574cd00763c57cef39ad3d0a9df323904d37864.tar.gz |
index: rename `frombuffer` to `from_buffer`
The majority of functions are named `from_something` (with an
underscore) instead of `fromsomething`. Update the index functions for
consistency with the rest of the library.
Diffstat (limited to 'src')
-rw-r--r-- | src/index.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c index ec4343377..482728d13 100644 --- a/src/index.c +++ b/src/index.c @@ -1454,7 +1454,7 @@ GIT_INLINE(bool) valid_filemode(const int filemode) return (is_file_or_link(filemode) || filemode == GIT_FILEMODE_COMMIT); } -int git_index_add_frombuffer( +int git_index_add_from_buffer( git_index *index, const git_index_entry *source_entry, const void *buffer, size_t len) { @@ -3709,3 +3709,12 @@ void git_indexwriter_cleanup(git_indexwriter *writer) git_index_free(writer->index); writer->index = NULL; } + +/* Deprecated functions */ + +int git_index_add_frombuffer( + git_index *index, const git_index_entry *source_entry, + const void *buffer, size_t len) +{ + return git_index_add_from_buffer(index, source_entry, buffer, len); +} |