Skip to content

Add support for libgit2 feature detection#475

Merged
jdavid merged 1 commit intolibgit2:masterfrom
carlosmn:features
Jan 16, 2015
Merged

Add support for libgit2 feature detection#475
jdavid merged 1 commit intolibgit2:masterfrom
carlosmn:features

Conversation

@carlosmn
Copy link
Copy Markdown
Member

This lets us ask the library whether it supports threading, https and
ssh.


I wasn't sure whether to leave it with the int as-is or convert the result to a list of strings, so you can do

if 'ssh' in pygit2.features:

instead of

if pygit2.features & pygit2.GIT_FEATURE_SSH:

The former seems more in line with what a pure-python library would do, but we do expose the underlying flags in most places.

This lets us ask the library whether it supports threading, https and
ssh.
@jdavid jdavid merged commit d0b00e3 into libgit2:master Jan 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants