summaryrefslogtreecommitdiff
path: root/include/git2
Commit message (Collapse)AuthorAgeFilesLines
* Export git_buf_text_is_binary and git_buf_text_contains_nul.expose-buffer-binary-detectionjoshaber2014-07-151-0/+42
| | | | So that users don’t need to implement binary detection themselves.
* Merge pull request #2463 from libgit2/cmn/ssh-factory-for-pathsVicent Marti2014-07-111-0/+16
|\ | | | | ssh: provide a factory function for setting ssh paths
| * ssh: provide a factory function for setting ssh pathscmn/ssh-factory-for-pathsCarlos Martín Nieto2014-07-071-0/+16
| | | | | | | | | | | | | | | | | | git allows you to set which paths to use for the git server programs when connecting over ssh; and we want to provide something similar. We do this by providing a factory function which can be set as the remote's transport callback which will set the given paths upon creation.
* | checkout: fix docs formatting for the optionsCarlos Martín Nieto2014-07-111-12/+12
| |
* | Documentation fixesCarlos Martín Nieto2014-07-082-13/+20
|/ | | | | | | | Fixup git_attr_value's comment to be recognised as documentation, and include the definitions needed for clang to parse reset.h such that it shows up in the documentation. This fixes #2430.
* Fix git_cred_ssh_interactive_callback signatureJacques Germishuys2014-07-031-1/+1
|
* Merge pull request #2449 from libgit2/cmn/maint-21Vicent Marti2014-07-021-10/+12
|\ | | | | Maint fixes for ssl initing and ssh exposure
| * ssh: always declare the libssh2 typesCarlos Martín Nieto2014-06-301-8/+11
| | | | | | | | | | This lets a user decide they do want to use keyboard-interactive after they've compiled.
| * ssh: create the right callback signature based on build optionsCarlos Martín Nieto2014-06-301-10/+9
| | | | | | | | | | | | | | | | | | | | | | When linking against libssh2, create the transport.h such that it contains its definition for custom crypto and keyboard-interactive callbacks. If we don't link against libssh2, create an equivalent signature which has void pointers instead of pointers to libssh2 structures. This would be one way to fix #2438.
* | clone: remote git_clone_into{,_local} from the public APIcmn/clone-custom-repoCarlos Martín Nieto2014-07-021-53/+0
| | | | | | | | | | | | As git_clone now has callbacks to configure the details of the repository and remote, remove the lower-level functions from the public API, as they lack some of the logic from git_clone proper.
* | clone: add a callback for repository creationCarlos Martín Nieto2014-07-021-3/+36
| | | | | | | | | | | | Analogously to the remote creation callback, provide a way for the user of git_clone() to create the repository with whichever options they desire via callback.
* | Improvements to git_transport extensibilityPhilip Kelley2014-06-262-21/+48
| | | | | | | | | | git_remote_set_transport now takes a transport factory rather than a transport git_clone_options now allows the caller to specify a remote creation callback
* | Export git_revert_commitEdward Thomson2014-06-251-1/+1
| |
* | Merge remote-tracking branch 'upstream/cmn/treebuilder-perf'Carlos Martín Nieto2014-06-241-2/+4
|\ \ | |/ |/|
| * treebuilder: don't keep removed entries aroundCarlos Martín Nieto2014-06-101-3/+5
| | | | | | | | | | | | If the user wants to keep a copy for themselves, they should make a copy. It adds unnecessary complexity to make sure the returned entries are valid until the builder is cleared.
| * treebuilder: use a map instead of vector to store the entriesCarlos Martín Nieto2014-06-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Finding a filename in a vector means we need to resort it every time we want to read from it, which includes every time we want to write to it as well, as we want to find duplicate keys. A hash-map fits what we want to do much more accurately, as we do not care about sorting, but just the particular filename. We still keep removed entries around, as the interface let you assume they were going to be around until the treebuilder is cleared or freed, but in this case that involves an append to a vector in the filter case, which can now fail. The only time we care about sorting is when we write out the tree, so let's make that the only time we do any sorting.
* | remote: update documentationCarlos Martín Nieto2014-06-111-18/+60
|/ | | | | Add docs for git_clone_local_t and move the docs for the git_clone_options to each field.
* pathspec: use C guards in headerCarlos Martín Nieto2014-06-101-0/+3
|
* remote: fix rename docsCarlos Martín Nieto2014-06-091-3/+0
|
* Bump version to 0.21.0Carlos Martín Nieto2014-06-081-3/+3
| | | | Bump library version to 0.21.0 and SONAME to 21
* Change SOVERSION at API breakscmn/soversionCarlos Martín Nieto2014-06-081-0/+2
| | | | | | | | | | Since the SOVERSION doesn't need to follow the library's version and simply needs to be monotonically increasing whenever we release something that breaks the ABI, we can set some number and allow multiple versions of the library to be installed side-by-side. We start here with the minor version as that's what we release for now, and it allows to backport this change to earlier versions.
* remote: don't free the remote on deletecmn/remote-rename-moreCarlos Martín Nieto2014-06-061-2/+0
| | | | This was a bad idea. Don't free except in the free function.
* remote: return problem refspecs instead of using a callbackCarlos Martín Nieto2014-06-061-3/+5
| | | | | | There is no reason why we need to use a callback here. A string array fits better with the usage, as this is not an event and we don't need anything from the user.
* index: split GIT_IDXENTRY into two flag enumscmn/docstuffCarlos Martín Nieto2014-06-031-28/+31
| | | | | | The documentation has shown this as a single enum for a long time. These should in fact be two enums. One with the bits for the flags and another with the bits for the extended flags.
* Formatting fixes for the docsCarlos Martín Nieto2014-06-035-58/+58
| | | | | These are some issues I found while playing around with the new parser for docurium.
* Merge pull request #2011 from libgit2/cmn/clone-localVicent Marti2014-05-291-0/+37
|\ | | | | Local clone
| * clone: allow for linking in local cloneCarlos Martín Nieto2014-05-281-0/+4
| | | | | | | | | | | | | | | | If requested, git_clone_local_into() will try to link the object files instead of copying them. This only works on non-Windows (since it doesn't have this) when both are on the same filesystem (which are unix semantics).
| * clone: add flag not to linkCarlos Martín Nieto2014-05-281-0/+1
| |
| * clone: add flags to override whether to perform a local cloneCarlos Martín Nieto2014-05-281-0/+7
| |
| * clone: perform a "local clone" when given a local pathCarlos Martín Nieto2014-05-281-0/+25
| | | | | | | | | | | | | | | | When git is given such a path, it will perform a "local clone", bypassing the git-aware protocol and simply copying over all objects that exist in the source. Copy this behaviour when given a local path.
* | [Blob] Update documentation for is_binary.Ungureanu Marius2014-05-281-1/+1
| | | | | | filter.h tells me that we check the first 8000 bytes.
* | Modify GIT_MERGE_CONFIG -> GIT_MERGE_PREFERENCEEdward Thomson2014-05-271-6/+7
| |
* | Move GIT_MERGE_CONFIG_* to its own enumEdward Thomson2014-05-271-3/+11
| |
* | Introduce GIT_MERGE_CONFIG_* for merge.ff settingsEdward Thomson2014-05-271-0/+12
|/ | | | | | git_merge_analysis will now return GIT_MERGE_CONFIG_NO_FASTFORWARD when merge.ff=false and GIT_MERGE_CONFIG_FASTFORWARD_ONLY when merge.ff=true
* Fixed miscellaneous documentation errors.Michael Anderson2014-05-2310-34/+31
|
* remote: add api to guess the remote's default branchCarlos Martín Nieto2014-05-211-0/+18
| | | | | If the remote supports the symref protocol extension, then we return that, otherwise we guess with git's rules.
* remote: expose the remote's symref mappingsCarlos Martín Nieto2014-05-211-0/+5
| | | | | Add a symref_target field to git_remote_head to expose the symref mappings to the user.
* message: don't assume the comment charcmn/comment-charCarlos Martín Nieto2014-05-181-3/+5
| | | | | The comment char is configurable and we need to provide a way for the user to specify which comment char they chose for their message.
* Merge pull request #2313 from libgit2/cmn/remote-deleteVicent Marti2014-05-161-0/+13
|\ | | | | Remote deletion
| * remote: Introduce git_remote_delete()nulltoken2014-04-301-0/+13
| |
* | Minor fixes for warnings and error propagationRussell Belfer2014-05-121-1/+5
| |
* | Merge pull request #2188 from libgit2/cmn/config-snapshotRussell Belfer2014-05-123-3/+43
|\ \ | | | | | | Configuration snapshotting
| * | repository: introduce a convenience config snapshot methodcmn/config-snapshotCarlos Martín Nieto2014-05-071-1/+13
| | | | | | | | | | | | | | | | | | Accessing the repository's config and immediately taking a snapshot of it is a common operation, so let's provide a convenience function for it.
| * | config: document the how long the pointers are valid forCarlos Martín Nieto2014-04-181-1/+14
| | |
| * | config: refresh before reading a valueCarlos Martín Nieto2014-04-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the isolation of complex reads, we can now try to refresh the on-disk file before reading a value from it. This changes the semantics a bit, as before we could be sure that a string we got from the configuration was valid until we wrote or refreshed. This is no longer the case, as a read can also invalidate the pointer.
| * | config: implement config snapshottingCarlos Martín Nieto2014-04-182-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to have consistent views of the config files for remotes, submodules et al. and a configuration that represents what is currently stored on-disk, we need a way to provide a view of the configuration that does not change. The goal here is to provide the snapshotting part by creating a read-only copy of the state of the configuration at a particular point in time, which does not change when a repository's main config changes.
* | | Use unsigned type for APIs with opt flag maskRussell Belfer2014-05-082-4/+5
| | |
* | | Add filter options and ALLOW_UNSAFERussell Belfer2014-05-063-3/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | Diff and status do not want core.safecrlf to actually raise an error regardless of the setting, so this extends the filter API with an additional options flags parameter and adds a flag so that filters can be applied with GIT_FILTER_OPT_ALLOW_UNSAFE, indicating that unsafe filter application should be downgraded from a failure to a warning.
* | | Doc fixesRussell Belfer2014-05-022-2/+7
| | |
* | | Merge pull request #2308 from libgit2/rb/diff-update-index-stat-cacheVicent Marti2014-05-0217-125/+135
|\ \ \ | | | | | | | | Reduce excessive OID calculation for diff and stat