summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'development' into vmg/dupe-odb-backendsvmg/dupe-odb-backendsVicent Marti2013-04-2222-338/+491
|\ | | | | | | | | Conflicts: src/odb.c
| * Merge pull request #1485 from libgit2/include-git2-sysVicent Martí2013-04-2216-89/+159
| |\ | | | | | | Create include/git2/sys and move backend APIs there
| | * Move git_reference__alloc to include/git2/sysRussell Belfer2013-04-214-19/+16
| | | | | | | | | | | | | | | | | | 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-214-42/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-211-38/+43
| | | | | | | | | | | | | | | | | | | | | | | | 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-10/+40
| | |
| | * Move some low-level repo fns to include/git2/sysRussell Belfer2013-04-211-0/+1
| | |
| | * Added git_repository_new functionJohn Wiegley2013-04-211-0/+6
| | |
| | * Move odb_backend implementors stuff into git2/sysRussell Belfer2013-04-216-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-213-0/+3
| | | | | | | | | | | | | | | | | | 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.
| * | Add missing prototype for p_realpath().Jasper Lievisse Adriaanse2013-04-221-0/+2
| |/
| * alloc doesn't take a refdb; git_refdb_free nicely in the testsEdward Thomson2013-04-193-22/+29
| |
| * Fix workdir iterator leakRussell Belfer2013-04-181-7/+5
| | | | | | | | | | When attempting to create a workdir iterator for a bare repo, don't leak the iterator structure.
| * Fix win64 warningsRussell Belfer2013-04-181-1/+1
| |
| * Fix uninitialized var warningsRussell Belfer2013-04-182-2/+2
| |
| * More filesystem iterator cleanupRussell Belfer2013-04-181-41/+42
| | | | | | | | | | Renamed the callback functions and made some minor rearrangements to clean up the flow of some code.
| * Make workdir iterator use filesystem iteratorRussell Belfer2013-04-181-391/+154
| | | | | | | | | | | | | | | | This adds some hooks into the filesystem iterator so that the workdir iterator can just become a wrapper around it. Then we remove most of the workdir iterator code and just have it augment the filesystem iterator with skipping .git entries, updating the ignore stack, and checking for submodules.
| * Add filesystem iterator variantRussell Belfer2013-04-182-0/+312
| | | | | | | | | | | | This adds a new variant iterator that is a raw filesystem iterator for scanning directories from a root. There is still more work to do to blend this with the working directory iterator.
* | odb: Disable inode checks for Win32Vicent Marti2013-04-221-0/+4
| |
* | odb: Do not allow duplicate on-disk backendsVicent Marti2013-04-191-9/+28
|/
* Merge pull request #1482 from nviennot/error-name-emailVicent Martí2013-04-181-1/+1
|\ | | | | Return error for empty name/email
| * Return error for empty name/emailNicolas Viennot2013-04-181-1/+1
| |
* | treebuilder: don't overwrite the error messageCarlos Martín Nieto2013-04-181-1/+0
|/
* Merge pull request #1475 from libgit2/vmg/refs-peelVicent Martí2013-04-173-60/+113
|\ | | | | Allow access to the cached peel data in packed-refs
| * refs: Do not union the peelvmg/refs-peelVicent Marti2013-04-173-17/+14
| |
| * refs: Check alloc is cleanerVicent Marti2013-04-171-2/+1
| |
| * refs: Add `git_referene_target_peel`Vicent Marti2013-04-173-62/+119
| |
* | Merge pull request #1477 from ethomson/checkout_modified_use_cacheVicent Martí2013-04-171-0/+12
|\ \ | | | | | | checkout: use cache when possible to determine if workdir item is dirty
| * | checkout: use cache when possible to determine if workdir item is dirtyEdward Thomson2013-04-171-0/+12
| |/ | | | | | | | | | | | | | | | | | | | | If the on-disk file has been staged (it's stat data matches the stat data in the cache) then we need not hash the file to determine whether it differs from the checkout target; instead we can simply use the oid in the index. This prevents recomputing a file's hash unnecessarily, prevents loading the file (when filtering) and prevents edge cases where filters suggest that a file is dirty immediately after git writes the file.
* | repository: Add `git_repository_open_bare`vmg/bare-openVicent Marti2013-04-171-0/+31
|/
* Merge pull request #1469 from libgit2/vmg/unified-revisionVicent Martí2013-04-153-42/+59
|\ | | | | Unified rev-parse, with a revision object
| * git_revision -> git_revspecVicent Marti2013-04-152-16/+16
| |
| * Is this crazy?Vicent Marti2013-04-152-27/+24
| |
| * Merge remote-tracking branch 'ben/unified-revparse' into developmentVicent Marti2013-04-153-36/+56
| |\
| | * Change git_revparse to output git_object pointersBen Straub2013-04-152-16/+13
| | | | | | | | | | | | This will probably prevent many lookup/free operations in calling code.
| | * Redeploy git_revparse_single.Ben Straub2013-04-152-5/+7
| | |
| | * Reintroduce git_revparse_single.Ben Straub2013-04-151-1/+1
| | |
| | * Deprecate git_revparse_single and _rangelikeBen Straub2013-04-094-51/+20
| | |
| | * Implement unified git_revparseBen Straub2013-04-081-6/+58
| | |
* | | remote: don't try to update FETCH_HEAD if no extra heads existCarlos Martín Nieto2013-04-161-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Don't try to update anything if there are no heads to update. This saves us from trying to look into a fetch refspec when there is none. A better fix for compatibility with git when using remotes without refspecs is still needed, but this stops us from segfaulting.
* | | Allow git_remote_ls after disconnecting from the remoteCarlos Martín Nieto2013-04-153-23/+22
|/ / | | | | | | Keep the data around until free, as expected by our own fetch example
* | Fix compilation on OpenBSDCarlos Martín Nieto2013-04-152-2/+2
| |
* | commit: correctly detect the start of the commit messageCarlos Martín Nieto2013-04-151-2/+2
| | | | | | | | | | | | | | | | | | The end of the header is signaled by to consecutive LFs and the commit message starts immediately after. Jumping over LFs at the start of the message is a bug and leads to creating different commits if when rebuilding history. This also fixes an empty commit message being returned as "\n".
* | dec refcount on refdb instead of always freeingEdward Thomson2013-04-121-1/+9
| |
* | Merge pull request #1450 from carlosmn/branch-upstreamVicent Martí2013-04-115-38/+149
|\ \ | | | | | | Branch upstream configuration
| * | branch: add more upstream configuration managementCarlos Martín Nieto2013-04-111-1/+115
| | | | | | | | | | | | | | | Add functions to set and unset the upstream configuration to complement the getter we already have.
| * | branch: refactor git_branch_remote_nameCarlos Martín Nieto2013-03-311-25/+22
| | | | | | | | | | | | | | | | | | Return the size we'd need to write to instead of simply an error. Split the function into two to be used later by the upstream configuration functions.
| * | branch: rename 'tracking' to 'upstream'Carlos Martín Nieto2013-03-305-12/+12
| | | | | | | | | | | | | | | The term 'tracking' is overloaded. Help distinguish what we mean by using 'upstream' for this part of the library.
* | | Notify '*' pathspec correctly when diffingyorah2013-04-114-12/+40
| | | | | | | | | | | | I also moved all tests related to notifying in their own file.
* | | object: Export git_object_dupVicent Marti2013-04-106-16/+10
| | |