summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-02-11 10:14:13 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2018-02-18 10:08:10 +0000
commit5f774dbf7b738aa467b53acc8643651e5c745f58 (patch)
treea06a4bb575a8f3300623150c8418606e70a54a7a /include
parentb8cb75361d48f16f41dfa99b5b988a914e53040b (diff)
downloadlibgit2-5f774dbf7b738aa467b53acc8643651e5c745f58.tar.gz
git_index_add_frombuffer: only accept files/linksethomson/index_add_requires_files
Ensure that the buffer given to `git_index_add_frombuffer` represents a regular blob, an executable blob, or a link. Explicitly reject commit entries (submodules) - it makes little sense to allow users to add a submodule from a string; there's no possible path to success.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions