summaryrefslogtreecommitdiff
path: root/include/git2
Commit message (Collapse)AuthorAgeFilesLines
* cache: Max cache size, and evict when the cache fills upvmg/new-cacheVicent Marti2013-04-221-1/+2
|
* Global option settersVicent Marti2013-04-221-0/+2
|
* No longer neededVicent Marti2013-04-221-11/+0
|
* Merge pull request #1493 from carlosmn/remotesVicent Martí2013-04-222-10/+41
|\ | | | | Revamp the refspec handling
| * refspec: unify the string and parsed dataCarlos Martín Nieto2013-04-201-0/+8
| | | | | | | | | | | | | | | | It used to be separate as an attempt to make the querying easier, but it didn't work out that way, so put all the data together. Add git_refspec_string() as well to get the original string, which is now stored alongside the independent parts.
| * remote: allow querying for refspecsCarlos Martín Nieto2013-04-201-2/+24
| | | | | | | | | | | | | | | | Introduce git_remote_{fetch,push}_refspecs() to get a list of refspecs from the remote and rename the refspec-adding functions to a less silly name. Use this instead of the vector index hacks in the tests.
| * remote: handle multiple refspecsCarlos Martín Nieto2013-04-201-14/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | A remote can have a multitude of refspecs. Up to now our git_remote's have supported a single one for each fetch and push out of simplicity to get something working. Let the remotes and internal code know about multiple remotes and get the tests passing with them. Instead of setting a refspec, the external users can clear all and add refspecs. This should be enough for most uses, though we're still missing a querying function.
* | Move git_reference__alloc to include/git2/sysRussell Belfer2013-04-213-32/+61
| | | | | | | | | | | | Create a new include/git2/sys/refs.h and move the reference alloc functions there. Also fix some documentation issues and some minor code cleanups.
* | Move refdb_backend to include/git2/sysRussell Belfer2013-04-212-17/+15
| | | | | | | | | | | | | | | | | | This moves most of the refdb stuff over to the include/git2/sys directory, with some minor shifts in function organization. While I was making the necessary updates, I also removed the trailing whitespace in a few files that I modified just because I was there and it was bugging me.
* | Move git_commit_create_from_oids into sys/commit.hRussell Belfer2013-04-212-67/+86
| | | | | | | | | | | | | | | | Actually this renames git_commit_create_oid to git_commit_create_from_oids and moves the API declaration to include/git2/sys/commit.h since it is a dangerous API for general use (because it doesn't check that the OID list items actually refer to real objects).
* | Added git_commit_create_oidJohn Wiegley2013-04-211-0/+20
| |
* | Move some low-level repo fns to include/git2/sysRussell Belfer2013-04-212-70/+92
| |
* | Added git_repository_new functionJohn Wiegley2013-04-211-0/+8
| |
* | Move odb_backend implementors stuff into git2/sysRussell Belfer2013-04-216-168/+185
| | | | | | | | | | | | | | | | | | | | | | | | This moves some of the odb_backend stuff that is related to the internals of an odb_backend implementation into include/git2/sys. Some of the stuff related to streaming I left in include/git2 because it seemed like it would be reasonably needed by a normal user who wanted to stream objects into and out of the ODB. Also, I added APIs for traversing the list of backends so that some of the tests would not need to access ODB internals.
* | Move git_config_backend to include/git2/sysRussell Belfer2013-04-212-50/+72
|/ | | | | | Moving backend implementor objects into include/git2/sys so the APIs can be isolated from the ones that normal libgit2 users would be likely to use.
* alloc doesn't take a refdb; git_refdb_free nicely in the testsEdward Thomson2013-04-192-4/+1
|
* remote: specify what values direction can mean in git_remote_connect()Carlos Martín Nieto2013-04-191-1/+2
| | | | This fixes #1487
* repository: Doc fixVicent Marti2013-04-181-3/+1
|
* Merge pull request #1475 from libgit2/vmg/refs-peelVicent Martí2013-04-172-1/+17
|\ | | | | Allow access to the cached peel data in packed-refs
| * refs: Add `git_referene_target_peel`Vicent Marti2013-04-172-1/+17
| |
* | repository: Add `git_repository_open_bare`vmg/bare-openVicent Marti2013-04-171-0/+15
|/
* libgit2 0.18.0 "Big Ben"Vicent Marti2013-04-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the last minor release before 1.0preview1. Highlights of this release include: - Branch API - Checkout head, index and tree - Finished clone support - Abstracted reference API to use custom backends - Full diff support - New (faster) packbuilder - Push support - New Remotes API - Revparse support (single and range commits) - Stash support - Submodules support As always, the full changelog is available at: http://libgit2.github.com/libgit2/#p/changelog Yeah, it's a huge release. Releasing stuff sucks. Expect 1.0 and API freeze in less than a month. Your faithful maintainer, vmg Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Update docsVicent Marti2013-04-151-9/+7
|
* git_revision -> git_revspecVicent Marti2013-04-151-2/+2
|
* Is this crazy?Vicent Marti2013-04-151-4/+10
|
* Merge remote-tracking branch 'ben/unified-revparse' into developmentVicent Marti2013-04-151-13/+39
|\
| * Clean up minor detailsBen Straub2013-04-152-4/+2
| |
| * Change git_revparse to output git_object pointersBen Straub2013-04-151-2/+2
| | | | | | | | This will probably prevent many lookup/free operations in calling code.
| * Reintroduce git_revparse_single.Ben Straub2013-04-151-0/+14
| |
| * Deprecate git_revparse_single and _rangelikeBen Straub2013-04-092-26/+1
| |
| * Implement unified git_revparseBen Straub2013-04-081-16/+18
| |
| * Propose unified rev-parse APIBen Straub2013-04-081-0/+37
| |
* | Merge pull request #1450 from carlosmn/branch-upstreamVicent Martí2013-04-111-2/+14
|\ \ | | | | | | Branch upstream configuration
| * | branch: add more upstream configuration managementCarlos Martín Nieto2013-04-111-0/+12
| | | | | | | | | | | | | | | Add functions to set and unset the upstream configuration to complement the getter we already have.
| * | branch: rename 'tracking' to 'upstream'Carlos Martín Nieto2013-03-301-2/+2
| | | | | | | | | | | | | | | The term 'tracking' is overloaded. Help distinguish what we mean by using 'upstream' for this part of the library.
* | | object: Export git_object_dupVicent Marti2013-04-101-0/+9
| | |
* | | Tests and more fixes for submodule diffsRussell Belfer2013-04-091-3/+20
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | This adds tests for diffs with submodules in them and (perhaps unsurprisingly) requires further fixes to be made. Specifically, this fixes: - when considering if a submodule is dirty in the workdir, it was being treated as dirty even if only the index was dirty. - git_diff_patch_to_str (and git_diff_patch_print) were "printing" the headers for files (and submodules) that were unmodified or had no meaningful content. - added comment to previous fix and removed unneeded parens.
* | Merge remote-tracking branch 'gnprice/revwalk' into developmentVicent Marti2013-04-072-1/+29
|\ \
| * | revwalk: Parse revision rangesGreg Price2013-04-061-0/+15
| | | | | | | | | | | | | | | | | | All the hard work is already in revparse. Signed-off-by: Greg Price <price@mit.edu>
| * | revparse: Parse range-like syntaxGreg Price2013-04-061-0/+13
| | | | | | | | | | | | Signed-off-by: Greg Price <price@mit.edu>
| * | Fix puzzling doc commentGreg Price2013-03-311-1/+1
| | | | | | | | | | | | Signed-off-by: Greg Price <price@mit.edu>
* | | export git_reference__allocEdward Thomson2013-04-021-1/+1
| | |
* | | branch: Fix git_branch_create() documentationnulltoken2013-04-011-4/+2
| | |
* | | tag: Fix parsing when no tagger nor messagenulltoken2013-03-311-2/+2
| |/ |/|
* | transport: don't try to export nonexistent functionCarlos Martín Nieto2013-03-301-10/+0
| |
* | Merge pull request #1436 from schu/opts-cache-sizeVicent Martí2013-03-261-0/+11
|\ \ | | | | | | opts: allow configuration of odb cache size
| * | opts: allow configuration of odb cache sizeMichael Schubert2013-03-251-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | Currently, the odb cache has a fixed size of 128 slots as defined by GIT_DEFAULT_CACHE_SIZE. Allow users to set the size of the cache via git_libgit2_opts(). Fixes #1035.
* | | Implement GIT_STATUS_OPT_EXCLUDE_SUBMODULESRussell Belfer2013-03-252-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This option has been sitting unimplemented for a while, so I finally went through and implemented it along with some tests. As part of this, I improved the implementation of GIT_DIFF_IGNORE_SUBMODULES so it be more diligent about avoiding extra work and about leaving off delta records for submodules to the greatest extent possible (though it may include them still if you are request TYPECHANGE records).
* | | Recursing into ignored dirs for diff and statusRussell Belfer2013-03-252-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | This implements working versions of GIT_DIFF_RECURSE_IGNORED_DIRS and GIT_STATUS_OPT_RECURSE_IGNORED_DIRS along with some tests for the newly available behaviors. This is not turned on by default for status, but can be accessed via the options to the extended version of the command.
* | | Merge pull request #1428 from xavier-l/nul-terminated-oidVicent Martí2013-03-251-0/+10
|\ \ \ | | | | | | | | Nul terminated oid