Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-04-26 03:20:22 +0300
committerCarlos Martín Nieto <cmn@dwim.me>2015-05-13 10:46:57 +0300
commitb1ae3e5317239db70670a13fd751a4442289e128 (patch)
tree4307de605a5ccd4a16630e44e36be822efbb2fca /CHANGELOG.md
parent3e20154a9d1ac15913cb639b057561e9043e6215 (diff)
Update CHANGELOG with the changes to the remotes
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md58
1 files changed, 57 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d8bea9e15..80d7b41f1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -37,6 +37,12 @@ support for HTTPS connections insead of OpenSSL.
* Checkout can now accept an index for the baseline computations via the
`baseline_index` member.
+* The configuration for fetching is no longer stored inside the
+ `git_remote` struct but has been moved to a `git_fetch_options`. The
+ remote functions now take these options or the callbacks instead of
+ setting them beforehand.
+
+
### API additions
* The `git_merge_options` gained a `file_flags` member.
@@ -64,7 +70,15 @@ support for HTTPS connections insead of OpenSSL.
put into the reflog as the source/target.
* `git_index_add_frombuffer()` can now create a blob from memory
- buffer and add it to the index which is attached to a repository.
+ buffer and add it to the index which is attached to a repository.
+
+* The structure `git_fetch_options` has been added to determine the
+ runtime configuration for fetching, such as callbacks, pruning and
+ autotag behaviour. It has the runtime initializer
+ `git_fetch_init_options()`.
+
+* The enum `git_fetch_prune_t` has been added, letting you specify the
+ pruning behaviour for a fetch.
* `git_stash_apply()` can now apply a stashed state from the stash list,
placing the data into the working directory and index.
@@ -74,6 +88,15 @@ support for HTTPS connections insead of OpenSSL.
### API removals
+* `git_remote_save()` and `git_remote_clear_refspecs()` has been
+ removed. Remote's configuration is changed via the configuration
+ directly or through a convenience function which performs changes to
+ the configuration directly.
+
+* `git_remote_set_callbacks()`, `git_remote_get_callbacks()` and
+ `git_remote_set_transport()` have been removed a the remote no
+ longer stores this configuration.
+
### Breaking API changes
* `git_smart_subtransport_cb` now has a `param` parameter.
@@ -130,6 +153,39 @@ support for HTTPS connections insead of OpenSSL.
`git_rebase_open` functions take a `git_rebase_options`, where they
will persist the options to subsequent `git_rebase` calls.
+* The `git_clone_options` struct now has fetch options in a
+ `fetch_opts` field instead of remote callbacks in
+ `remote_callbacks`.
+
+* The following functions now longer act on a remote instance but
+ change the repository's configuration. Their signatures have changed
+ accordingly:
+
+ * `git_remote_set_url()`, `git_remote_seturl()`
+ * `git_remote_add_fetch()`, `git_remote_add_push()` and
+ * `git_remote_set_autotag()`
+
+* `git_remote_connect()` and `git_remote_prune()` now take a pointer
+ to the callbacks.
+
+* `git_remote_fetch()` and `git_remote_download()` now take a poitner
+ to fetch options which determine the runtime configuration.
+
+* The `git_remote_autotag_option_t` values have been changed. It has
+ gained a `_FALLBACK` default value to specify no override for the
+ configured setting.
+
+* `git_remote_update_tips()` now takes a pointer to the callbacks as
+ well as a boolean whether to write `FETCH_HEAD` and the autotag
+ setting.
+
+* The `git_submodule_update_options` struct now has fetch options in
+ the `fetch_opts` field instead of callbacks in the
+ `remote_callbacks` field.
+
+* The `push` function in the `git_transport` interface now takes a
+ pointer to the remote callbacks.
+
v0.22
------