summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Rasmussen <axelrasmussen@google.com>2015-06-02 12:42:07 -0600
committerAxel Rasmussen <axelrasmussen@google.com>2015-09-18 23:33:56 -0700
commit0269833f92149a50f2eb522af8ef6481a4f17ac4 (patch)
treee9528177b19bd831ff4167b8f0f54d261b5d4270
parente7de893ef899705f7b7e2d9894a7fda147b6d091 (diff)
downloadlibgit2-0269833f92149a50f2eb522af8ef6481a4f17ac4.tar.gz
settings: expose GIT_USE_NSEC flag in git_libgit2_features
-rw-r--r--include/git2/common.h5
-rw-r--r--src/settings.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/include/git2/common.h b/include/git2/common.h
index d84a76512..1846e601a 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -99,8 +99,9 @@ GIT_EXTERN(void) git_libgit2_version(int *major, int *minor, int *rev);
*/
typedef enum {
GIT_FEATURE_THREADS = (1 << 0),
- GIT_FEATURE_HTTPS = (1 << 1),
- GIT_FEATURE_SSH = (1 << 2),
+ GIT_FEATURE_HTTPS = (1 << 1),
+ GIT_FEATURE_SSH = (1 << 2),
+ GIT_FEATURE_NSEC = (1 << 3),
} git_feature_t;
/**
diff --git a/src/settings.c b/src/settings.c
index 2097ca314..22e55953a 100644
--- a/src/settings.c
+++ b/src/settings.c
@@ -34,6 +34,9 @@ int git_libgit2_features()
#if defined(GIT_SSH)
| GIT_FEATURE_SSH
#endif
+#if defined(GIT_USE_NSEC)
+ | GIT_FEATURE_NSEC
+#endif
;
}