libgit2/include/git2/sys
Carlos Martín Nieto 9a97f49e3a config: borrow refcounted references
This changes the get_entry() method to return a refcounted version of
the config entry, which you have to free when you're done.

This allows us to avoid freeing the memory in which the entry is stored
on a refresh, which may happen at any time for a live config.

For this reason, get_string() has been forbidden on live configs and a
new function get_string_buf() has been added, which stores the string in
a git_buf which the user then owns.

The functions which parse the string value takea advantage of the
borrowing to parse safely and then release the entry.
2015-03-03 18:35:12 +01:00
..
commit.h Add git_commit_amend API 2014-02-07 16:17:59 -08:00
config.h config: borrow refcounted references 2015-03-03 18:35:12 +01:00
diff.h doc: add documentation to all the public structs and enums 2014-12-06 03:44:40 +01:00
filter.h git_filter_opt_t -> git_filter_flag_t 2015-02-19 11:09:54 -05:00
hashsig.h Added GIT_HASHSIG_ALLOW_SMALL_FILES to allow computing signatures for small files 2015-01-14 10:17:56 -06:00
index.h index: reuc and name entrycounts should be size_t 2014-12-22 18:42:03 -06:00
mempack.h Spelling fixes 2014-12-04 21:06:59 -06:00
odb_backend.h Fix remaining init_options inconsistencies 2014-05-02 09:21:33 -07:00
openssl.h Include git2/common.h in sys/openssl.h. 2015-01-02 15:56:03 -08:00
refdb_backend.h Introduce reference transactions 2014-09-30 15:44:32 +02:00
reflog.h reflog: move the reflog implementation into refdb_fs 2013-10-02 06:53:24 +02:00
refs.h Fix public header on sys/refs.h 2014-12-19 15:31:49 +01:00
repository.h Merge pull request #2839 from swisspol/typo 2015-01-26 11:25:16 -06:00
stream.h Fixed error when including git2/include/sys/stream.h 2015-02-11 23:30:34 +01:00
transport.h doc: add documentation to all the public structs and enums 2014-12-06 03:44:40 +01:00