diff options
| author | Ben Straub <bs@github.com> | 2012-11-29 12:26:09 -0800 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2012-11-30 12:55:45 -0800 |
| commit | bde336ea51df071de922827ae322df7b01b059ce (patch) | |
| tree | 1fbf4d0e9bf4dc9499abd83226e2452f6e8047c8 /include/git2/repository.h | |
| parent | da820437368aae2088e992e7ce8944253693aa16 (diff) | |
| download | libgit2-bde336ea51df071de922827ae322df7b01b059ce.tar.gz | |
Add version fields and init macros for public input structs.
Diffstat (limited to 'include/git2/repository.h')
| -rw-r--r-- | include/git2/repository.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/git2/repository.h b/include/git2/repository.h index e91108a33..0d82b9810 100644 --- a/include/git2/repository.h +++ b/include/git2/repository.h @@ -239,6 +239,7 @@ typedef enum { * will be added pointing to this URL. */ typedef struct { + unsigned int version; uint32_t flags; uint32_t mode; const char *workdir_path; @@ -248,6 +249,9 @@ typedef struct { const char *origin_url; } git_repository_init_options; +#define GIT_REPOSITORY_INIT_OPTIONS_VERSION 1 +#define GIT_REPOSITORY_INIT_OPTIONS_INIT {GIT_REPOSITORY_INIT_OPTIONS_VERSION, 0} + /** * Create a new Git repository in the given folder with extended controls. * |
