summaryrefslogtreecommitdiff
path: root/src/refdb.c
Commit message (Collapse)AuthorAgeFilesLines
* 'del' instead of 'delete' for the poor C++ usersEdward Thomson2013-09-241-1/+1
|
* util: It's called `memzero`Vicent Marti2013-06-121-1/+1
|
* Merge remote-tracking branch 'arrbee/minor-paranoia' into developmentVicent Marti2013-06-121-0/+1
|\
| * Add safe memset and use itRussell Belfer2013-06-071-1/+1
| | | | | | | | | | | | This adds a `git__memset` routine that will not be optimized away and updates the places where I memset() right before a free() call to use it.
| * Zero memory for major objects before freeingRussell Belfer2013-05-311-0/+1
| | | | | | | | | | | | | | By zeroing out the memory when we free larger objects (i.e. those that serve as collections of other data, such as repos, odb, refdb), I'm hoping that it will be easier for libgit2 bindings to find errors in their object management code.
* | RefcountingVicent Marti2013-05-301-3/+3
| |
* | ...Aaaand this worksVicent Marti2013-05-301-4/+30
| |
* | What are the chances, reallyVicent Marti2013-05-291-57/+23
| |
* | Liike thisVicent Marti2013-05-281-5/+14
|/
* Introduce a glob-filtering iteratorCarlos Martín Nieto2013-05-111-6/+36
| | | | | If the backend doesn't provide support for it, the matching is done in refdb on top of a normal iterator.
* refs: remove the OID/SYMBOLIC filteringCarlos Martín Nieto2013-05-111-48/+0
| | | | | | | | | Nobody should ever be using anything other than ALL at this level, so remove the option altogether. As part of this, git_reference_foreach_glob is now implemented in the frontend using an iterator. Backends will later regain the ability of doing the glob filtering in the backend.
* Make sure the ref iterator works in an repo without physical presenceCarlos Martín Nieto2013-05-111-1/+5
|
* refs: introduce an iteratorCarlos Martín Nieto2013-05-111-0/+24
| | | | This allows us to get a list of reference names in a loop instead of callbacks.
* Move git_reference__alloc to include/git2/sysRussell Belfer2013-04-211-16/+12
| | | | | | Create a new include/git2/sys/refs.h and move the reference alloc functions there. Also fix some documentation issues and some minor code cleanups.
* Move refdb_backend to include/git2/sysRussell Belfer2013-04-211-4/+5
| | | | | | | | | This moves most of the refdb stuff over to the include/git2/sys directory, with some minor shifts in function organization. While I was making the necessary updates, I also removed the trailing whitespace in a few files that I modified just because I was there and it was bugging me.
* alloc doesn't take a refdb; git_refdb_free nicely in the testsEdward Thomson2013-04-191-2/+13
|
* dec refcount on refdb instead of always freeingEdward Thomson2013-04-121-1/+9
|
* immutable references and a pluggable ref databaseEdward Thomson2013-03-071-0/+177