]> git.proxmox.com Git - libgit2.git/commit
Add range checking around cache opts
authorRussell Belfer <rb@github.com>
Fri, 12 Apr 2013 19:44:51 +0000 (12:44 -0700)
committerVicent Marti <tanoku@gmail.com>
Mon, 22 Apr 2013 14:50:51 +0000 (16:50 +0200)
commitb12b72ea82776bbbd4296eeac1376055b0487edf
tree193ea7ff5f0a026c6157663cc9e181df3c3da364
parentbadd85a61354ef7b62c5f8e53d740738e5ef1e57
Add range checking around cache opts

Add a git_cache_set_max_object_size method that does more checking
around setting the max object size.  Also add a git_cache_size to
read the number of objects currently in the cache.  This makes it
easier to write tests.
src/cache.c
src/cache.h
src/util.c