summaryrefslogtreecommitdiff
path: root/src/config_backend.h
Commit message (Collapse)AuthorAgeFilesLines
* config_file: separate out read-only backendPatrick Steinhardt2019-07-261-0/+12
| | | | | | | To further distinguish the file writeable and readonly backends, separate the readonly backend into its own "config_snapshot.c" implementation. The snapshot backend can be generically used to snapshot any type of backend.
* config: Refactor `git_config_backend_from_string` to take a lengthNelson Elhage2018-10-091-1/+2
|
* config: introduce new read-only in-memory backendPatrick Steinhardt2018-09-281-0/+8
| | | | | | | | | Now that we have abstracted away how to store and retrieve config entries, it became trivial to implement a new in-memory backend by making use of this. And thus we do so. This commit implements a new read-only in-memory backend that can parse a chunk of memory into a `git_config_backend` structure.
* config: rename "config_file.h" to "config_backend.h"Patrick Steinhardt2018-09-281-0/+75
The header "config_file.h" has a list of inline-functions to access the contents of a config backend without directly messing with the struct's function pointers. While all these functions are called "git_config_file_*", they are in fact completely backend-agnostic and don't care whether it is a file or not. Rename all the function to instead be backend-agnostic versions called "git_config_backend_*" and rename the header to match.