summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * | | Added an oid function that accepts nul-terminated stringsXavier L2013-03-211-0/+10
| | | |
* | | | Remove GIT_SUCCESS from documentationMiquel Canes Gonzalez2013-03-241-1/+1
| |/ / |/| |
* | | graph: make the ahead-behind docs clearerCarlos Martín Nieto2013-03-221-5/+10
|/ / | | | | | | | | Explain it in local-upstream branch terms so it's easier to grasp than with the `one` and `two` naming from the merge-base code.
* | clone: fix param commentCarlos Martín Nieto2013-03-191-1/+1
| |
* | Fixes and cleanupsRussell Belfer2013-03-181-26/+0
| | | | | | | | | | Get rid of some dead code, tighten things up a bit, and fix a bug with core::env test.
* | Switch search paths to classic delimited stringsRussell Belfer2013-03-181-19/+14
| | | | | | | | | | | | | | | | | | | | | | | | This switches the APIs for setting and getting the global/system search paths from using git_strarray to using a simple string with GIT_PATH_LIST_SEPARATOR delimited paths, just as the environment PATH variable would contain. This makes it simpler to get and set the value. I also added code to expand "$PATH" when setting a new value to embed the old value of the path. This means that I no longer require separate actions to PREPEND to the value.
* | Implement global/system file search pathsRussell Belfer2013-03-152-10/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The goal of this work is to expose the search logic for "global", "system", and "xdg" files through the git_libgit2_opts() interface. Behind the scenes, I changed the logic for finding files to have a notion of a git_strarray that represents a search path and to store a separate search path for each of the three tiers of config file. For each tier, I implemented a function to initialize it to default values (generally based on environment variables), and then general interfaces to get it, set it, reset it, and prepend new directories to it. Next, I exposed these interfaces through the git_libgit2_opts interface, reusing the GIT_CONFIG_LEVEL_SYSTEM, etc., constants for the user to control which search path they were modifying. There are alternative designs for the opts interface / argument ordering, so I'm putting this phase out for discussion. Additionally, I ended up doing a little bit of clean up regarding attr.h and attr_file.h, adding a new attrcache.h so the other two files wouldn't have to be included in so many places.
* | diff: allow asking for diffs with no contextCarlos Martín Nieto2013-03-091-1/+1
| | | | | | | | | | | | | | | | | | Previously, 0 meant default. This is problematic, as asking for 0 context lines is a valid thing to do. Change GIT_DIFF_OPTIONS_INIT to default to three and stop treating 0 as a magic value. In case no options are provided, make sure the options in the diff object default to 3.
* | Merge pull request #1403 from ethomson/tracingVicent Martí2013-03-071-0/+68
|\ \ | | | | | | Optional tracing back to consumers
| * | optional tracingEdward Thomson2013-03-071-0/+68
| | |
* | | refs: Dude, you're OUT.Vicent Marti2013-03-071-18/+0
| | |
* | | immutable references and a pluggable ref databaseEdward Thomson2013-03-076-65/+300
|/ /
* | fixed minor issues with new note iteratorNico von Geyso2013-03-061-2/+4
| | | | | | | | | | * fixed style issues * use new iterator functions for git_note_foreach()
* | use git_note_iterator type instead of non-public git_iterator oneNico von Geyso2013-03-061-3/+10
| |
* | basic note iterator implementationNico von Geyso2013-03-061-0/+39
|/ | | | | * git_note_iterator_new() - create a new note iterator * git_note_next() - retrieves the next item of the iterator
* Make sure docurium can see git_packbuilder_foreachCarlos Martín Nieto2013-03-051-1/+1
|
* clear REUC on checkoutEdward Thomson2013-03-041-0/+8
|
* indexer: kill git_indexerCarlos Martín Nieto2013-03-031-48/+0
| | | | | | | This was the first implementation and its goal was simply to have something that worked. It is slow and now it's just taking up space. Remove it and switch the one known usage to use the streaming indexer.
* Merge pull request #1233 from arrbee/file-similarity-metricVicent Martí2013-02-271-31/+81
|\ | | | | Add file similarity scoring to diff rename/copy detection
| * Add diff rename tests with partial similarityRussell Belfer2013-02-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds some new tests that actually exercise the similarity metric between files to detect renames, copies, and split modified files that are too heavily modified. There is still more testing to do - these tests are just partially covering the cases. There is also one bug fix in this where a change set with only MODIFY being broken into ADD/DELETE (due to low self-similarity) without any additional RENAMED entries would end up not processing the split requests (because the num_rewrites counter got reset).