summaryrefslogtreecommitdiff
path: root/include/git2
Commit message (Collapse)AuthorAgeFilesLines
* Add missing accessor for fetchRecurseSubmodulesdevelopmentRussell Belfer2012-09-071-0/+29
| | | | | | When `git_submodule` became an opaque structure, I forgot to add accessor functions for the fetchRecurseSubmodules config setting. This fixes that.
* Merge pull request #900 from pwkelley/developmentVicent Martí2012-09-061-0/+6
|\ | | | | Expose a malloc function to 3rd party ODB backends
| * Expose a malloc function to 3rd party ODB backendsPhilip Kelley2012-08-271-0/+6
| |
* | diff: Cleanup documentation and printf compatVicent Marti2012-09-061-1/+12
| |
* | Fix comments and a minor bugRussell Belfer2012-09-051-34/+100
| | | | | | | | | | This adds better header comments and also fixes a bug in one of simple APIs that tells the number of lines in the current hunk.
* | Diff iteratorsRussell Belfer2012-09-053-3/+62
| | | | | | | | | | | | | | | | | | | | | | This refactors the diff output code so that an iterator object can be used to traverse and generate the diffs, instead of just the `foreach()` style with callbacks. The code has been rearranged so that the two styles can still share most functions. This also replaces `GIT_REVWALKOVER` with `GIT_ITEROVER` and uses that as a common error code for marking the end of iteration when using a iterator style of object.
* | Merge pull request #856 from libgit2/utf8-winVicent Martí2012-09-041-59/+0
|\ \ | | | | | | Windows: Perform UTF-8 path conversion on the Stack
| * | windows: Keep UTF-8 on the stack yoVicent Marti2012-08-281-59/+0
| | |
* | | branch: Add missing includeVicent Marti2012-09-041-0/+1
|/ /
* | Merge branch 'branch-delete-ref' into developmentVicent Marti2012-08-272-13/+15
|\ \ | | | | | | | | | | | | Conflicts: include/git2/refs.h
| * | branch: Change `git_branch_delete` to take a refVicent Marti2012-08-262-13/+13
| |/
* | Merge pull request #904 from arrbee/better-object-peelVicent Martí2012-08-272-5/+8
|\ \ | | | | | | Make git_object_peel a bit smarter
| * | Make git_object_peel a bit smarterRussell Belfer2012-08-272-5/+8
| |/ | | | | | | | | | | | | | | | | | | | | This expands the types of peeling that `git_object_peel` knows how to do to include TAG -> BLOB peeling, and makes the errors slightly more consistent depending on the situation. It also adds a new special behavior where peeling to ANY will peel until the object type changes (e.g. chases TAGs to a non-TAG). Using this expanded peeling, this replaces peeling code that was embedded in `git_tag_peel` and `git_reset`.
* | Merge pull request #897 from nulltoken/topic/git_reference_check_formatVicent Martí2012-08-271-0/+48
|\ \ | |/ |/| refs: expose git_reference_normalize_name()
| * refs: expose git_reference_normalize_name()nulltoken2012-08-271-0/+48
| |
* | indexer: kill git_indexer_stats.data_receivedCarlos Martín Nieto2012-08-261-1/+0
| | | | | | | | | | | | | | It's not really needed with the current code as we have EOS and the sideband's flush to tell us we're done. Keep the distinction between processed and received objects.
* | Merge pull request #895 from carlosmn/sidebandVicent Martí2012-08-242-1/+3
|\ \ | | | | | | Add sideband support
| * | network: add sideband supportCarlos Martín Nieto2012-08-241-1/+1
| | | | | | | | | | | | | | | This lets us notify the user of what the remote end is doing while we wait for it to start sending us the packfile.
| * | indexer: recognize and mark when all of the packfile has been downloadedCarlos Martín Nieto2012-08-241-0/+2
| |/ | | | | | | | | We can't always rely on the network telling us when the download is finished. Recognize it from the indexer itself.
* | Working implementation of git_submodule_statusRussell Belfer2012-08-243-91/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | This is a big redesign of the git_submodule_status API and the implementation of the redesigned API. It also fixes a number of bugs that I found in other parts of the submodule API while writing the tests for the status part. This also fixes a couple of bugs in the iterators that had not been noticed before - one with iterating when there is a gitlink (i.e. separate-work-dir) and one where I was treating anything even vaguely submodule-like as a submodule, more aggressively than core git does.
* | Major submodule rewriteRussell Belfer2012-08-242-45/+421
|/ | | | | This replaces the old submodule API with a new extended API that supports most of the things that can be done with `git submodule`.
* Fix warnings and merge issues on Win64Russell Belfer2012-08-231-0/+5
|
* Some cleanup suggested during reviewRussell Belfer2012-08-221-13/+2
| | | | | | | | | | This cleans up a number of items suggested during code review with @vmg, including: * renaming "outside repo" config API to `git_config_open_default` * killing the `git_config_open_global` API * removing the `git_` prefix from the static functions in fileops * removing some unnecessary functionality from the "cp" command
* Add template dir and set gid to repo initRussell Belfer2012-08-222-17/+42
| | | | | | | | | | | | | | | | | This extends git_repository_init_ext further with support for initializing the repository from an external template directory and with support for the "create shared" type flags that make a set GID repository directory. This also adds tests for much of the new functionality to the existing `repo/init.c` test suite. Also, this adds a bunch of new utility functions including a very general purpose `git_futils_mkdir` (with the ability to make paths and to chmod the paths post-creation) and a file tree copying function `git_futils_cp_r`. Also, this includes some new path functions that were useful to keep the code simple.
* Add git_repository_init_ext for power inittersRussell Belfer2012-08-221-4/+131
| | | | | | | The extended version of repository init adds support for many of the things that you can do with `git init` and sets up structures that will make it easier to extend further in the future.
* Merge pull request #891 from arrbee/internal-ignore-apiVicent Martí2012-08-221-0/+74
|\ | | | | API for managing in-memory ignore rules
| * Wrap up ignore API and add testsRussell Belfer2012-08-221-0/+74
| | | | | | | | This fills out the ignore API and adds tests.
* | tree entry: rename git_tree_entry_attributes() into git_tree_entry_filemode()nulltoken2012-08-211-2/+2
| |
* | filemode: deploy enum usagenulltoken2012-08-211-2/+2
| |
* | filemode: introduce enum to ease use of attributesnulltoken2012-08-211-0/+10
|/
* treebuilder: enhance attributes handling on insertionnulltoken2012-08-191-1/+7
|
* Merge pull request #778 from ben/cloneVicent Martí2012-08-193-3/+131
|\ | | | | Clone
| * Add documentation for clone methods.Ben Straub2012-07-311-2/+3
| |
| * Add checkout.h to git2.h.Ben Straub2012-07-312-4/+4
| | | | | | Also correcting some documentation strings.
| * Enable stats on git_index_read_tree.Ben Straub2012-07-301-14/+2
| | | | | | | | | | Replace with the contents of git_index_read_tree_with_stats() and improve documentation comments.
| * Checkout: use git_index_read_tree_with_stats.Ben Straub2012-07-301-0/+15
| | | | | | | | | | New variant of git_index_read_tree that fills in the 'total' field of a git_indexer_stats struct as it's walking the tree.
| * Checkout: add head- and ref-centric checkouts.Ben Straub2012-07-271-9/+14
| | | | | | | | | | | | | | | | | | Renamed git_checkout_index to what it really was, and removed duplicate code from clone.c. Added git_checkout_ref, which updates HEAD and hands off to git_checkout_head. Added tests for the options the caller can pass to git_checkout_*.
| * Merge remote-tracking branch 'upstream/development' into test-mergeBen Straub2012-07-278-37/+174
| |\
| * | Checkout: implementation of most optionsBen Straub2012-07-261-1/+2
| | |
| * | Restructure for better checkout optionsBen Straub2012-07-262-21/+26
| | | | | | | | | | | | | | | | | | * Removed the #define for defaults * Promoted progress structure to top-level API call argument
| * | checkout: introduce git_checkout_optsBen Straub2012-07-261-3/+33
| | | | | | | | | | | | | | | Refactor checkout into several more-sensible entry points, which consolidates common options into a single structure that may be passed around.
| * | Merge branch 'development' into cloneBen Straub2012-07-1717-79/+215
| |\ \
| * | | Fix documentation comment to match actual params.Ben Straub2012-07-131-4/+1
| | | |
| * | | Clone: new home for git_checkout_force.Ben Straub2012-06-211-0/+38
| | | |
| * | | Add progress reporting to clone.Ben Straub2012-06-211-3/+6
| | | |
| * | | Add git_clone and git_clone_bare.Ben Straub2012-06-211-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | refs: fix missing parameter documentationnulltoken2012-08-151-0/+2
| | | |
* | | | notes: slight documentation enhancementsnulltoken2012-08-151-12/+14
| | | |
* | | | Merge pull request #873 from carlosmn/tree-walkCarlos Martín Nieto2012-08-141-2/+3
|\ \ \ \ | | | | | | | | | | git_tree_walk callback return value semantic does not match documentation
| * | | | tree: allow the user to skip an entry or cancel the walkCarlos Martín Nieto2012-08-131-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Returning a negative cancels the walk, and returning a positive one causes us to skip an entry, which was previously done by a negative value. This allows us to stay consistent with the rest of the functions that take a callback and keeps the skipping functionality.