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
AgeCommit message (Collapse)Author
2015-08-19cred: add a free function wrapperCarlos Martín Nieto
2015-08-19transport: provide a way to get the callbacksCarlos Martín Nieto
libgit2 implementations of smart subtransports can simply reach through the structure, but external implementors cannot. Add these two functions as a way for the smart subtransports to get the callbacks as set by the user.
2015-08-12config: perform unlocking via git_transactionCarlos Martín Nieto
This makes the API for commiting or discarding changes the same as for references.
2015-08-12config: expose locking via the main APICarlos Martín Nieto
This lock/unlock pair allows for the cller to lock a configuration file to avoid concurrent operations. It also allows for a transactional approach to updating a configuration file. If multiple updates must be made atomically, they can be done while the config is locked.
2015-08-12config: implement basic transactional supportCarlos Martín Nieto
When a configuration file is locked, any updates made to it will be done to the in-memory copy of the file. This allows for multiple updates to happen while we hold the lock, preventing races during complex config-file manipulation.
2015-08-03Make giterr_detach no longer publicMichael Procter
2015-08-01Merge pull request #3332 from phatblat/ben/doc-warningsCarlos Martín Nieto
Resolve documentation warnings
2015-07-28Fix remaining documentation warningsBen Chatelain
2015-07-28Use correct Doxygen trailing comment syntaxBen Chatelain
2015-07-27Fix @param names in doc commentsBen Chatelain
2015-07-24Merge pull request #3303 from libgit2/cmn/index-add-submoduleEdward Thomson
Allow adding a submodule through git_index_add_bypath
2015-07-24Merge pull request #3305 from libgit2/cmn/reflog-del-backendEdward Thomson
refdb: delete a ref's reflog upon deletion
2015-07-20Document git_fetch_options struct and fix typo.Ryan Roden-Corrent
git_fetch_options was missing from the API docs because it lacked a documentation comment above the struct declaration. I used the git_checkout_options docstring as a template. Also fixes a typo in git_remote_prune_refs (remote, not reamote).
2015-07-12refdb: delete a ref's reflog upon deletionCarlos Martín Nieto
Removing a reflog upon ref deletion is something which only some backends might wish to do. Backends which are database-backed may wish to archive a reflog, log-based ones may not need to do anything.
2015-07-12errors: add EDIRECTORYCarlos Martín Nieto
This is to be returned when the operation which the user asked for is not possible to do on a directory.
2015-07-10git_cert: child types use proper base typeEdward Thomson
2015-07-09Merge pull request #3281 from ethomson/wildcard_filtersCarlos Martín Nieto
filters: custom filters with wildcard attributes
2015-07-07Merge pull request #3277 from git-up/git_diff_index_to_indexCarlos Martín Nieto
Added git_diff_index_to_index()
2015-07-03filter: add docs for streaming filtersCarlos Martín Nieto
These functions are available on the public API but don't have any documentation, so they don't appear on the API reference. Fix that.
2015-07-01submodule: completely remove reload_allCarlos Martín Nieto
The function was removed, but its declaration and changelog entry about its removal were forgotten. The comment in the test doesn't make any sense as the function doesn't exist anymore, so get rid of it as well.
2015-07-01filters: custom filters with wildcard attributesEdward Thomson
Allow custom filters with wildcard attributes, so that clients can support some random `filter=foo` in a .gitattributes and look up the corresponding smudge/clean commands in the configuration file.
2015-06-30Added git_diff_index_to_index()Pierre-Olivier Latour
2015-06-28Bump version to 0.23.0 and SOVERSION to 23Carlos Martín Nieto
2015-06-26Merge pull request #3259 from ethomson/stash_apply_arghCarlos Martín Nieto
Stash apply: stage new files even when not updating the index
2015-06-26Merge pull request #3255 from libgit2/cmn/rename-unspecifiedEdward Thomson
Rename FALLBACK to UNSPECIFIED
2015-06-26stash: don't allow apply with staged changesEdward Thomson
2015-06-25Merge pull request #3246 from libgit2/cmn/dont-grow-borrowedEdward Thomson
Don't allow growing borrowed buffers
2015-06-25Rename FALLBACK to UNSPECIFIEDCarlos Martín Nieto
Fallback describes the mechanism, while unspecified explains what the user is thinking.
2015-06-25errors: introduce EINVALIDCarlos Martín Nieto
We've been using EINVALIDSPEC for a while to mean this, but that name is too specific. Introduce this to be more explicit.
2015-06-25blob: don't recomment using git_buf_growCarlos Martín Nieto
We currently recommend using `git_buf_grow` in order to make a buffer make an owned copy of the memory it points to. This is not behaviour we should encourage, so remove this recommendation. The function itself is not changed, as we need to remain compatible, but it will be changed not to allow usage on borrowed buffers.
2015-06-25Merge pull request #3097 from libgit2/cmn/submodule-config-stateCarlos Martín Nieto
Remove run-time configuration settings from submodules
2015-06-24curl: extract certificate informationCarlos Martín Nieto
The information is exposed by curl for some crypto libraries in the form of name:content strings. We can't do much more than return this information.
2015-06-24stream: add support for setting a proxyCarlos Martín Nieto
If the stream claims to support this feature, we can let the transport set the proxy. We also set HTTPPROXYTUNNEL option so curl can create a tunnel through the proxy which lets us create our own TLS session (if needed).
2015-06-24Merge pull request #3131 from urkud/const-charEdward Thomson
Add `const` qualifier
2015-06-22submodule: remove the RESET enum valuesCarlos Martín Nieto
These are not useful anymore, as we don't affect the instance's configuration.
2015-06-22submodule: get rid of `_save()`Carlos Martín Nieto
We no longer have any setters which affect an instance, so `git_submodule_save()` is no longer relevant.
2015-06-22submodule: make `_set_url()` affect the configurationCarlos Martín Nieto
With this one, we can get rid of the edit_and_save test.
2015-06-22submodule: make `_set_branch()` affect the configurationCarlos Martín Nieto
2015-06-22submodule: make `_set_update_fetch_recurse_submodules()` affect the configCarlos Martín Nieto
Similarly to the other ones. In this test we copy over testing `RECURSE_YES` which shows an error in our handling of the `YES` variant which we may have to port to the rest.
2015-06-22submodule: make `_set_update()` affect the configurationCarlos Martín Nieto
Moving on with the removal of runtime-changing variables, the update setting for a remote is whatever it was when it was looked up.
2015-06-22submodule: add an ignore option to statusCarlos Martín Nieto
This lets us specify in the status call which ignore rules we want to use (optionally falling back to whatever the submodule has in its configuration). This removes one of the reasons for having `_set_ignore()` set the value in-memory. We re-use the `IGNORE_RESET` value for this as it is no longer relevant but has a similar purpose to `IGNORE_FALLBACK`. Similarly, we remove `IGNORE_DEFAULT` which does not have use outside of initializers and move that to fall back to the configuration as well.
2015-06-22submodule: don't let status change an existing instanceCarlos Martín Nieto
As submodules are becomes more like values, we should not let a status check to update its properties. Instead of taking a submodule, have status take a repo and submodule name.
2015-06-22submodule: make set_ignore() affect the configurationCarlos Martín Nieto
Instead of affecting a particular instance, make it change the configuration.
2015-06-22commit: allow retrieving an arbitrary header fieldCarlos Martín Nieto
This allows the user to look up fields which we don't parse in libgit2, and allows them to access gpgsig or mergetag fields if they wish to check the signature.
2015-06-19index: use the checksum to check whether it's been modifiedCarlos Martín Nieto
We currently use a timetamp to check whether an index file has been modified since we last read it, but this is racy. If two updates happen in the same second and we read after the first one, we won't detect the second one. Instead read the SHA-1 checksum of the file, which are its last 20 bytes which gives us a sure-fire way to detect whether the file has changed since we last read it. As we're now keeping track of it, expose an accessor to this data.
2015-06-12diff: introduce binary diff callbacksEdward Thomson
Introduce a new binary diff callback to provide the actual binary delta contents to callers. Create this data from the diff contents (instead of directly from the ODB) to support binary diffs including the workdir, not just things coming out of the ODB.
2015-06-11Merge pull request #3155 from mgorny/userpass-constCarlos Martín Nieto
cred_helpers: Add 'const' qualifiers to git_cred_userpass_payload
2015-06-10Introduce `git_filter_list_contains`Edward Thomson
`git_filter_list_contains` can be used to query a filter list to determine if a given filter will be run.
2015-05-31Include git2/transaction.hCarlos Martín Nieto
This was forgotten when the feature was implemented.
2015-05-31remote: apply insteadOf configuration.Patrick Steinhardt
A remote's URLs are now modified according to the url.*.insteadOf and url.*.pushInsteadOf configurations. This allows a user to replace URL prefixes by setting the corresponding keys. E.g. "url.foo.insteadOf = bar" would replace the prefix "bar" with the new prefix "foo".