Commit cff4ca26 by lhchavez

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!
parent 705f4e85
...@@ -555,8 +555,7 @@ GIT_EXTERN(int) git_index_add_bypath(git_index *index, const char *path); ...@@ -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 * If a previous index entry exists that has the same path as the
* given 'entry', it will be replaced. Otherwise, the 'entry' will be * 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 * added.
* real value of the blob.
* *
* This forces the file to be added to the index, not looking * This forces the file to be added to the index, not looking
* at gitignore rules. Those rules can be evaluated through * at gitignore rules. Those rules can be evaluated through
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment