mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 11:06:32 +00:00
fetch: avoid API breaking-changes from v1.7
Update `git_fetch_options` to break out the fetch options into individual options. This prevents creating an API breaking change from v1.7.0. `git_remote_update_tips` retains the `update_flags` to also avoid an API breaking change.
This commit is contained in:
@@ -744,10 +744,10 @@ typedef struct {
|
||||
git_fetch_prune_t prune;
|
||||
|
||||
/**
|
||||
* How to handle reference updates; a combination of
|
||||
* `git_remote_update_flags`.
|
||||
* How to handle reference updates; see `git_remote_update_flags`.
|
||||
*/
|
||||
unsigned int update_flags;
|
||||
unsigned int update_fetchhead : 1,
|
||||
report_unchanged : 1;
|
||||
|
||||
/**
|
||||
* Determines how to behave regarding tags on the remote, such
|
||||
@@ -790,7 +790,8 @@ typedef struct {
|
||||
GIT_FETCH_OPTIONS_VERSION, \
|
||||
GIT_REMOTE_CALLBACKS_INIT, \
|
||||
GIT_FETCH_PRUNE_UNSPECIFIED, \
|
||||
GIT_REMOTE_UPDATE_FETCHHEAD, \
|
||||
1, \
|
||||
0, \
|
||||
GIT_REMOTE_DOWNLOAD_TAGS_UNSPECIFIED, \
|
||||
GIT_PROXY_OPTIONS_INIT }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user