Skip to content

Introduce libgit2 options - #350

Merged
jdavid merged 2 commits into
libgit2:masterfrom
carlosmn:options
Mar 23, 2014
Merged

jdavid merged 2 commits into
libgit2:masterfrom
carlosmn:options

Conversation

@carlosmn

Copy link
Copy Markdown
Member

Allow setting and getting the mwindow size and search paths.


This is a first approximation, mapping libgit2's API one-to-one, though I can imagine we might like to have some global where we can set and get in a less annoying way, maybe a global pygit2.settings class with setters and getters than we can use, like

mmap_size = pygit2.settings.mmap_size

pygit2.settings.search_path[pygit2.GIT_CONFIG_LEVEL_GLOBAL] = '/var/lib/nobody'
Allow setting and getting the mwindow size and search paths.
pygit2.settings proxies though the lower-level varargs option() via
getters and setters which provide a more natural abstraction.
@carlosmn

Copy link
Copy Markdown
Member Author

Ok, I've added a pygit2.settings object to proxy the calls to something that makes some sense from python.

@jdavid
jdavid merged commit 48ff3a8 into libgit2:master Mar 23, 2014
@carlosmn
carlosmn deleted the options branch March 27, 2014 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants