summaryrefslogtreecommitdiff
path: root/include/git2.h
Commit message (Collapse)AuthorAgeFilesLines
* buf: deprecate git_buf as a public typeethomson/userbufEdward Thomson2020-05-291-1/+0
| | | | | | | | | | | | | | | The `git_buf` type is now no longer a publicly available structure, and the `git_buf` family of functions are no longer exported. The deprecation layer adds a typedef for `git_buf` (as `git_userbuf`) and macros that define `git_buf` functions as `git_userbuf` functions. This provides API (but not ABI) compatibility with libgit2 1.0's buffer functionality. Within libgit2 itself, we take care to avoid including those deprecated typedefs and macros, since we want to continue using the `git_buf` type and functions unmodified. Therefore, a `GIT_DEPRECATE_BUF` guard now wraps the buffer deprecation layer. libgit2 will define that.
* credential: change git_cred to git_credentialethomson/credtypeEdward Thomson2020-01-261-1/+1
| | | | | | | | | | | | | | | | We avoid abbreviations where possible; rename git_cred to git_credential. In addition, we have standardized on a trailing `_t` for enum types, instead of using "type" in the name. So `git_credtype_t` has become `git_credential_t` and its members have become `GIT_CREDENTIAL` instead of `GIT_CREDTYPE`. Finally, the source and header files have been renamed to `credential` instead of `cred`. Keep previous name and values as deprecated, and include the new header files from the previous ones.
* cert: move cert enums & struct to its own headerEtienne Samson2019-09-131-0/+1
|
* cred: separate public interface from low-level detailsEtienne Samson2019-09-131-0/+1
|
* deprecation: move deprecated bits to deprecated.hEdward Thomson2019-01-251-0/+1
|
* apply: introduce `git_apply_tree`Edward Thomson2018-11-031-0/+1
| | | | | Introduce `git_apply_tree`, which will apply a `git_diff` to a given `git_tree`, allowing an in-memory patch application for a repository.
* mailmap: WIP mailmap supportEmilio Cobos Álvarez2018-06-141-0/+1
|
* Include git2/worktree.h in git2.hapnadkarni2017-11-251-0/+1
| | | I'm not sure if worktree.h was intentionally left out of git2.h. Looks like an oversight since it is in fact documented.
* proxy: introduce a proxy options structCarlos Martín Nieto2016-04-191-0/+1
| | | | It is currently unused; it will go into the remote's options.
* Include git2/transaction.hCarlos Martín Nieto2015-05-311-0/+1
| | | | This was forgotten when the feature was implemented.
* Remove the callbacks struct from the remoteCarlos Martín Nieto2015-05-131-1/+0
| | | | | | | | | | | | | | Having the setting be different from calling its actions was not a great idea and made for the sake of the wrong convenience. Instead of that, accept either fetch options, push options or the callbacks when dealing with the remote. The fetch options are currently only the callbacks, but more options will be moved from setters and getters on the remote to the options. This does mean passing the same struct along the different functions but the typical use-case will only call git_remote_fetch() or git_remote_push() and so won't notice much difference.
* Make the OpenSSL locking function warnings more severeCarlos Martín Nieto2014-12-121-1/+0
| | | | | Our git_openssl_set_locking() would ideally not exist. Make it clearer that we provide it as a last resort and you should prefer anything else.
* Fixed git2.h not including threads.h anymorePierre-Olivier Latour2014-11-151-1/+2
|
* Rename git_threads_ to git_libgit2_Carlos Martín Nieto2014-11-081-1/+1
| | | | | | This describes their purpose better, as we now initialize ssl and some other global stuff in there. Calling the init function is not something which has been optional for a while now.
* rebase: updates based on PR commentsEdward Thomson2014-10-261-0/+1
|
* s/git_merge_head/git_annotated_commitEdward Thomson2014-10-261-0/+1
| | | | | Rename git_merge_head to git_annotated_commit, as it becomes used in more operations than just merge.
* Merge pull request #2592 from libgit2/cmn/describeCarlos Martín Nieto2014-10-091-0/+1
|\ | | | | Implement git-describe
| * object: introduce git_describe_object()nulltoken2014-04-301-0/+1
| |
* | Include git2/odb_backend.h in git2.hCarlos Martín Nieto2014-09-301-0/+1
|/ | | | | | | Since this isn't under sys/ we need to have it included in the main git2.h file. This fixes #2551.
* Added cherry-pick supportJacques Germishuys2014-04-141-0/+1
|
* Include git2/revert.h in git2.hLinquize2013-12-031-0/+1
|
* Merge remote-tracking branch 'libgit2/development' into blameBen Straub2013-10-281-0/+1
|\
| * Rename diff objects and split patch.hRussell Belfer2013-10-111-0/+1
| | | | | | | | | | | | This makes no functional change to diff but renames a couple of the objects and splits the new git_patch (formerly git_diff_patch) into a new header file.
* | Merge branch 'development' into blameBen Straub2013-10-031-45/+38
|\ \ | |/ | | | | | | Conflicts: include/git2.h
| * Add refdb.h to git2.h, reorder git2.h sanelyEdward Thomson2013-09-271-44/+37
| |
* | Merge branch 'development' into blameBen Straub2013-09-251-0/+3
|\ \ | |/
| * Start of filter API + git_blob_filtered_contentRussell Belfer2013-09-171-0/+3
| | | | | | | | | | | | | | | | | | | | This begins the process of exposing git_filter objects to the public API. This includes: * new public type and API for `git_buffer` through which an allocated buffer can be passed to the user * new API `git_blob_filtered_content` * make the git_filter type and GIT_FILTER_TO_... constants public
* | Merge branch 'development' into blame_rebasedBen Straub2013-09-161-0/+1
|\ \ | |/ | | | | | | Conflicts: include/git2.h
| * Fix example/log.c pathspec handling of mergesRussell Belfer2013-07-101-0/+1
| | | | | | | | | | | | | | This fixes the way the example log program decides if a merge commit should be shown when a pathspec is given. Also makes it easier to use the pathspec API to just check "does a tree match anything in the pathspec" without allocating a match list.
* | Initial blame APIBen Straub2013-06-131-0/+1
|/
* update copyrightsEdward Thomson2013-01-081-1/+1
|
* Merge pull request #1108 from libgit2/ahead-behind-countRussell Belfer2012-11-291-0/+1
|\ | | | | Add API to calculate ahead/behind count
| * Rename git_count_ahead_behind -> git_graph_ahead_behindScott J. Goldman2012-11-281-0/+1
| | | | | | | | | | | | Moved it into graph.{c,h} which i created for the new "graph" functions namespace. Also adjusted the function prototype to use `size_t` and `const git_oid *`.
* | Push! By schu, phkelley, and congyiwu, et alPhilip Kelley2012-11-281-0/+1
|/
* Merge pull request #1030 from pwkelley/transportsVicent Martí2012-11-011-0/+1
|\ | | | | Reorganize transport architecture
| * Reorganize transport architecture (squashed 3)Philip Kelley2012-11-011-0/+1
| |
* | stash: add git_stash_save()nulltoken2012-10-261-0/+1
|/
* gsoc-pack-objects WIPMichael Schubert2012-10-091-0/+1
|
* Add public API for internal ignoresRussell Belfer2012-08-211-0/+1
| | | | | | | This creates a public API for adding to the internal ignores list, which already existing but was not accessible. This adds the new default value for core.excludesfile also.
* Add checkout.h to git2.h.Ben Straub2012-07-311-0/+1
| | | Also correcting some documentation strings.
* Merge branch 'development' into cloneBen Straub2012-07-171-0/+2
|\
| * Add missing includesVicent Marti2012-07-111-0/+2
| |
* | Add git_clone and git_clone_bare.Ben Straub2012-06-211-0/+1
|/ | | | | | | | | | So far they only create a repo, setup the "origin" remote, and fetch. The API probably needs work as well; there's no way to get progress information at this point. Also uncovered a shortcoming; git_remote_download doesn't fetch over local transport.
* message: Expose git_message_prettify()nulltoken2012-06-191-0/+1
| | | | | | | | | | git_commit() and git_tag() no longer prettify the message by default. This has to be taken care of by the caller. This has the nice side effect of putting the caller in position to actually choose to strip the comments or not.
* Merge pull request #669 from nulltoken/topic/resetVicent Martí2012-06-071-0/+1
|\ | | | | Add git_reset()
| * Add git_reset()nulltoken2012-06-071-0/+1
| | | | | | | | Currently supports Soft and Mixed modes.
* | Rev-parse: @{time} syntax.Ben Straub2012-05-111-0/+1
|/ | | | | | Ported date.c (for approxidate_careful) from git.git revision aa39b85. Trimmed out the parts we're not using.
* Move git_merge_base() to is own header and document itCarlos Martín Nieto2012-04-121-0/+1
|
* Added submodule API and use in statusRussell Belfer2012-03-281-1/+1
| | | | | | | | | | When processing status for a newly checked out repo, it is possible that there will be submodules that have not yet been initialized. The only way to distinguish these from untracked directories is to have some knowledge of submodules. This commit adds a new submodule API which, given a name or path, can determine if it appears to be a submodule and can give information about the submodule.
* Implement diff lists and formattersRussell Belfer2012-03-021-0/+1
| | | | | | | | This reworks the diff API to separate the steps of producing a diff descriptions from formatting the diff. This will allow us to share diff output code with the various diff creation scenarios and will allow us to implement rename detection as an optional pass that can be run on a diff list.