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.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| branches | Loading commit data... | |
| reflog | Loading commit data... | |
| crashes.c | Loading commit data... | |
| create.c | Loading commit data... | |
| createwithlog.c | Loading commit data... | |
| delete.c | Loading commit data... | |
| foreachglob.c | Loading commit data... | |
| isvalidname.c | Loading commit data... | |
| iterator.c | Loading commit data... | |
| list.c | Loading commit data... | |
| listall.c | Loading commit data... | |
| lookup.c | Loading commit data... | |
| normalize.c | Loading commit data... | |
| overwrite.c | Loading commit data... | |
| pack.c | Loading commit data... | |
| peel.c | Loading commit data... | |
| races.c | Loading commit data... | |
| read.c | Loading commit data... | |
| ref_helpers.c | Loading commit data... | |
| ref_helpers.h | Loading commit data... | |
| rename.c | Loading commit data... | |
| revparse.c | Loading commit data... | |
| settargetwithlog.c | Loading commit data... | |
| setter.c | Loading commit data... | |
| shorthand.c | Loading commit data... | |
| transactions.c | Loading commit data... | |
| unicode.c | Loading commit data... | |
| update.c | Loading commit data... |