summaryrefslogtreecommitdiff
path: root/include/git2.h
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Intial indexer codeCarlos Martín Nieto2011-08-021-0/+1
|
* Remove double include of remote.h from git2.hMarcel Groothuis2011-07-291-1/+0
|
* Including git2/status.h in the git2.h header.Julien Miotte2011-07-271-0/+1
|
* libgit2 v0.14.0, "watermelon wheat"v0.14.0Vicent Marti2011-07-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This a very packed minor release. The usual guilty parties have been working harder than usual during the holidays -- thanks to everyone involved! As always, the updated API docs can be found at: http://libgit2.github.com/libgit2/ NEW FEATURES: - New OS abstraction layer. This should make all POSIX calls much more reliable under Windows. - Much faster writes of simple objects (commits, tags, trees) to the ODB via in-memory buffering and direct writes, instead of streaming. - Unified & simplified API for object creation. All the `create` methods now take Objects instead of OIDs to ensure that corrupted (dangling) objects cannot be created on the repository. - Fully Git-compilant reference renaming (finally!), with the already existing `git_reference_rename`. - Deletion of config keys with `git_config_delete` - Greatly improved index performance when adding new entries - Reflog support with the `git_reflog` API - Remotes support with the `git_remote` API - First parts of the Networking API, including refspecs and the transport abstraction layer. (Note that there are no actual transports implemented yet) - Status support with the `git_status_foreach` and `git_status_file` functions. - Tons of bugfixes, including the outstanding bug #127 (wrong sort ordering when querying tree entries). KNOWN ISSUES: - The reference renaming code leaks memory. This is being worked on as part of a reference handling overhaul. - The tree-from-index builder has abysmal performance because it doesn't handle the Treecache extension yet. This is also being worked on. FULL API CHANGELOG: - removed, * modified, + added - git_commit_create_o - git_commit_create_ov - git_reference_create_oid_f - git_reference_create_symbolic_f - git_reference_rename_f - git_tag_create_f - git_tag_create_fo - git_tag_create_o * git_commit_create * git_commit_create_v * git_config_foreach * git_reference_create_oid * git_reference_create_symbolic * git_reference_rename * git_tag_create * git_tag_create_frombuffer + git_clearerror + git_config_delete + git_index_uniq + git_odb_hashfile + git_oid_fromstrn + git_reflog_entry_byindex + git_reflog_entry_committer + git_reflog_entry_msg + git_reflog_entry_oidnew + git_reflog_entry_oidold + git_reflog_entrycount + git_reflog_free + git_reflog_read + git_reflog_write + git_refspec_src_match + git_refspec_transform + git_remote_connect + git_remote_fetchspec + git_remote_free + git_remote_get + git_remote_ls + git_remote_name + git_remote_url + git_repository_head_detached + git_repository_head_orphan + git_status_file + git_status_foreach + git_tag_create_lightweight + git_tag_list_match + git_transport_new
* Cleanup external APIVicent Marti2011-07-111-2/+0
| | | | | Some of the WIP API calls have been hidden in preparation for the next minor release.
* reflog: add API to read or write a reference logschu2011-07-091-0/+1
| | | | | | | | | | | So far libgit2 didn't support reference logs (reflog). Add a new git_reflog_* API for basic reading and writing of reflogs: * git_reflog_read * git_reflog_write * git_reflog_free Signed-off-by: schu <schu-github@schulog.org>
* pkt-line: parse other-ref linesCarlos Martín Nieto2011-06-261-0/+1
| | | | | | Add support for parsing other-ref lines. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Implement ls-remote on local driveCarlos Martín Nieto2011-06-261-0/+3
| | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Abstract the refspec query and parseCarlos Martín Nieto2011-06-261-0/+1
| | | | | | | | | | Move them to their own functions to avoid duplication and to make it easier to ignore missing configuration. Not finding 'fetch' is considered fatal, though this might not be correct behaviour (push-only remotes?) Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Add a remotes APICarlos Martín Nieto2011-06-261-0/+3
| | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>