diff options
| author | Ben Straub <bs@github.com> | 2012-12-13 08:47:29 -0800 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2012-12-13 08:47:29 -0800 |
| commit | 7c353afd0e9da7b7ec55c3c421f03ea17fe266e5 (patch) | |
| tree | fb2f734fce9dd6a40170e4289b37896508a1ffe1 /include/git2/remote.h | |
| parent | 44f36f6e3ba40420d0a8bb2977e6ada2b735bc2b (diff) | |
| download | libgit2-7c353afd0e9da7b7ec55c3c421f03ea17fe266e5.tar.gz | |
Define constant for default fetch spec
Diffstat (limited to 'include/git2/remote.h')
| -rw-r--r-- | include/git2/remote.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index 6649b3a46..f3b0a9443 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -24,6 +24,14 @@ */ GIT_BEGIN_DECL +/** + * Use this when creating a remote with git_remote_new to get the default fetch + * behavior produced by git_remote_add. It corresponds to this fetchspec (note + * the spaces between '/' and '*' to avoid C compiler errors): + * "+refs/heads/ *:refs/remotes/<remote_name>/ *" + */ +#define GIT_REMOTE_DEFAULT_FETCH "" + typedef int (*git_remote_rename_problem_cb)(const char *problematic_refspec, void *payload); /* * TODO: This functions still need to be implemented: |
