summaryrefslogtreecommitdiff
path: root/include/git2.h
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Merge pull request #558 from schu/notes-apiVicent Martí2012-02-151-0/+2
|\ | | | | Notes API
| * Add git notes APIschu2012-02-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds basic git notes support to libgit2, namely: * git_note_read * git_note_message * git_note_oid * git_note_create * git_note_remove In the long run, we probably want to provide some convenience callback mechanism for merging and moving (filter-branch) notes. Signed-off-by: schu <schu-github@schulog.org>
* | zlib: Remove custom `git2/zlib.h` headerVicent Martí2012-02-151-1/+0
|/ | | | | | This is legacy compat stuff for when `deflateBound` is not defined, but we're not embedding zlib and that function is always available. Kill that with fire.
* Update Copyright headerschu2012-02-131-1/+1
| | | | Signed-off-by: schu <schu-github@schulog.org>
* remote: Cleanup the remotes coderepo-ownershipVicent Marti2011-11-281-1/+0
| | | | | | - Hide the remaining transports code - Drop `git_headarray`, switch to using a callback to list refs. Makes the code cleaner.
* threads: Fix the shared global state with TLSVicent Marti2011-11-161-0/+1
| | | | | | | See `global.c` for a description of what we're doing. When libgit2 is built with GIT_THREADS support, the threading system must be explicitly initialized with `git_threads_init()`.
* put version information in separate fileSven Strickroth2011-10-091-4/+1
| | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* libgit2 v0.15.0 "Das Wunderbar Release"v0.15.0Vicent Marti2011-10-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I am aware the codename is not gramatically correct in any language. Check the COPYING file for the detailed terms on libgit2's license. Check the AUTHORS file for the full list of guilty parties. As we slowly stabilize the API, we've dropped 1 function from the library, and changed the signature of only 5 of them. There's of course a good chunk of new functionality, and a thousand bug fixes. In this release of libgit2: - Changed `git_blob_rawsize`: Now returns `size_t` instead of int, allowing files >4GB in 64 bit systems. - Removed `git_commit_message_short`: Please use `git_commit_message` to get the full message and decide which is the "short view" according to your needs (first line, first 80 chars...) - Added `git_commit_message_encoding`: Returns the encoding field of a commit message, if it exists. - Changed `git_commit_create`, `git_commit_create_v`: New argument `encoding`, which adds a encoding field to the generated commit object. - Added `git_config_find_system`: Returns the path to the system's global config file (according to the Core Git standards). - Changed `git_config_get_XX`, `git_config_set_XX`: the `long` and `int` types have been replaced by `int64` and `int32` respectively, to make their meaning more obvious. - Added `git_indexer`: An interface to index Git Packfiles has been added in the `git2/indexer.h` header. - Changed `git_reflog_entry_XX`: Reflog entries are now returned as `git_oid *` objects instead of hexadecimal OIDs. - Added `git_remote`: More fetch functionality has been added to the `git2/remote.h` functionality. Local, Smart HTTP and Git protocols are now supported. - Added `git_repository_head`: Returns the HEAD of the repository. - Added `git_repository_config_autoload`: Opens the configuration file of a repository, including the user's and the system's global config files, if they can be found. - Changed `git_signature_now`: Now returns an error code; the signature is stored by reference.
* Cleanup legal dataVicent Marti2011-09-191-21/+3
| | | | | | | | | | 1. The license header is technically not valid if it doesn't have a copyright signature. 2. The COPYING file has been updated with the different licenses used in the project. 3. The full GPLv2 header in each file annoys me.