]> git.proxmox.com Git - libgit2.git/commit - tests/libgit2/index/add.c
git_index_add: validate objects in index entries (optionally)
authorEdward Thomson <ethomson@github.com>
Tue, 23 Feb 2016 23:29:16 +0000 (18:29 -0500)
committerEdward Thomson <ethomson@github.com>
Sun, 28 Feb 2016 23:54:39 +0000 (18:54 -0500)
commit6ddf533afca5e25b7c532b4c164ae66e06f9c1c2
tree8b712ec3334211e5d391b3933ce5897ebd627695
parent2bbc7d3e564ed262e9555ea4fd081ece5ceb3bff
git_index_add: validate objects in index entries (optionally)

When `GIT_OPT_ENABLE_STRICT_OBJECT_CREATION` is turned on, validate
the index entries given to `git_index_add`.
src/index.c
src/object.h
tests/index/add.c [new file with mode: 0644]