From cff4ca26de9780cc30d00671d12536c2baf60fd9 Mon Sep 17 00:00:00 2001 From: lhchavez Date: Sun, 23 Feb 2020 06:33:27 -0800 Subject: [PATCH] index: Update the documentation for git_index_add_from_buffer() This change makes the docs reflect reality. The id and size were never updated in the entry! --- include/git2/index.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/git2/index.h b/include/git2/index.h index 8723aa636..314135109 100644 --- a/include/git2/index.h +++ b/include/git2/index.h @@ -555,8 +555,7 @@ GIT_EXTERN(int) git_index_add_bypath(git_index *index, const char *path); * * If a previous index entry exists that has the same path as the * given 'entry', it will be replaced. Otherwise, the 'entry' will be - * added. The `id` and the `file_size` of the 'entry' are updated with the - * real value of the blob. + * added. * * This forces the file to be added to the index, not looking * at gitignore rules. Those rules can be evaluated through