vendor/libgit2/include/git2/tree.h in rugged-0.26.7 vs vendor/libgit2/include/git2/tree.h in rugged-0.27.0

- old
+ new

@@ -305,12 +305,13 @@ * The optional pointer `out` can be used to retrieve a pointer to the * newly created/updated entry. Pass NULL if you do not need it. The * pointer may not be valid past the next operation in this * builder. Duplicate the entry if you want to keep it. * - * No attempt is being made to ensure that the provided oid points - * to an existing git object in the object database, nor that the - * attributes make sense regarding the type of the pointed at object. + * By default the entry that you are inserting will be checked for + * validity; that it exists in the object database and is of the + * correct type. If you do not want this behavior, set the + * `GIT_OPT_ENABLE_STRICT_OBJECT_CREATION` library option to false. * * @param out Pointer to store the entry (optional) * @param bld Tree builder * @param filename Filename of the entry * @param id SHA1 oid of the entry