summaryrefslogtreecommitdiff
path: root/include/git2
Commit message (Collapse)AuthorAgeFilesLines
* oid: Export `git_oid_tostr_s` instead of `_allocfmt`vmg/tostr_sVicent Marti2014-08-181-4/+8
| | | | | | The old `allocfmt` is of no use to callers, as they are not able to free the returned buffer. Export a new API that returns a static string that doesn't need to be freed.
* Merge pull request #2484 from libgit2/fix-git-status-list-new-unreadable-folderVicent Marti2014-07-233-20/+30
|\ | | | | Fix git status list new unreadable folder
| * Merge remote-tracking branch 'origin/master' into ↵Alan Rogers2014-07-229-115/+165
| |\ | | | | | | | | | fix-git-status-list-new-unreadable-folder
| * | Move the UNREADABLE enums to the correct group.Alan Rogers2014-07-221-6/+6
| | |
| * | Merge remote-tracking branch 'origin/development' into ↵Alan Rogers2014-07-104-28/+72
| |\ \ | | | | | | | | | | | | fix-git-status-list-new-unreadable-folder
| * | | Whitespace wibbles.Alan Rogers2014-06-042-6/+7
| | | |
| * | | Merge remote-tracking branch 'origin/development' into ↵Alan Rogers2014-06-0420-125/+221
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix-git-status-list-new-unreadable-folder Conflicts: include/git2/diff.h
| * | | | GIT_DIFF_INCLUDE_UNREADABLE_AS_UNTRACKEDAlan Rogers2014-06-031-1/+4
| | | | |
| * | | | Add GIT_STATUS_OPT_INCLUDE_UNREADABLE_AS_UNTRACKEDAlan Rogers2014-06-031-16/+16
| | | | | | | | | | | | | | | | | | | | and a (failing) test for it.
| * | | | Add GIT_STATUS_OPT_INCLUDE_UNREADABLEAlan Rogers2014-05-301-0/+1
| | | | |
| * | | | Remove GIT_FILEMODE_NEW as it's unused.Alan Rogers2014-05-301-2/+1
| | | | | | | | | | | | | | | | | | | | And use 0 for GIT_FILEMODE_UNREADABLE.
| * | | | Try a value for UNREADABLE that won't get masked out?!Alan Rogers2014-05-231-1/+1
| | | | |
| * | | | Return GIT_FILEMODE_UNREADABLE for files that fail to stat.Alan Rogers2014-05-212-1/+1
| | | | |
| * | | | Start adding GIT_DELTA_UNREADABLE and GIT_STATUS_WT_UNREADABLE.Alan Rogers2014-05-202-0/+5
| | | | |
| * | | | Rename GIT_ENOACCESS -> GIT_EUNREADABLEAlan Rogers2014-05-201-1/+1
| | | | |
| * | | | Return a specific error for EACCES.Alan Rogers2014-05-151-0/+1
| | | | |
* | | | | git_cherry_pick -> git_cherrypickEdward Thomson2014-07-222-16/+16
| |_|_|/ |/| | |
* | | | Just put it all in buffer.joshaber2014-07-162-42/+16
| | | |
* | | | 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
| | |