summaryrefslogtreecommitdiff
path: root/src/pack-objects.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix warningsLinquize2013-11-121-1/+1
|
* Allow callers to set mode on packfile creationEdward Thomson2013-11-071-1/+2
|
* Add git_packbuilder_hash to query pack filenameEdward Thomson2013-11-071-2/+10
|
* Merge pull request #1933 from libgit2/vmg/gcc-warningsRussell Belfer2013-11-011-2/+2
|\ | | | | Warnings for Windows x64 (MSVC) and GCC on Linux
| * Fix warning on win64Linquize2013-11-011-2/+2
| |
* | Merge pull request #1918 from libgit2/cmn/indexer-namingVicent Martí2013-11-011-7/+7
|\ \ | |/ |/| indexer: remove the stream infix
| * indexer: remove the stream infixCarlos Martín Nieto2013-10-301-7/+7
| | | | | | | | | | | | | | | | | | | | | | It was there to keep it apart from the one which read in from a file on disk. This other indexer does not exist anymore, so there is no need for anything other than git_indexer to refer to it. While here, rename _add() function to _append() and _finalize() to _commit(). The former change is cosmetic, while the latter avoids talking about "finalizing", which OO languages use to mean something completely different.
* | pack-objects: Depth can be negativeVicent Marti2013-10-301-4/+3
|/
* Merge pull request #1891 from libgit2/cmn/fix-thin-packsVicent Martí2013-10-281-36/+2
|\ | | | | Add support for thin packs
| * indexer: fix thin packsCarlos Martín Nieto2013-10-041-1/+1
| | | | | | | | | | | | When given an ODB from which to read objects, the indexer will attempt to inject the missing bases at the end of the pack and update the header and trailer to reflect the new contents.
| * pack: move the object header function hereCarlos Martín Nieto2013-10-041-35/+1
| |
* | Support cancellation in push operationJameson Miller2013-10-021-19/+24
|/ | | | | | | | | | | | | | | | This commit adds cancellation for the push operation. This work consists of: 1) Support cancellation during push operation - During object counting phase - During network transfer phase - Propagate GIT_EUSER error code out to caller 2) Improve cancellation support during fetch - Handle cancellation request during network transfer phase - Clear error string when cancelled during indexing 3) Fix error handling in git_smart__download_pack Cancellation during push is still only handled in the pack building and network transfer stages of push (and not during packbuilding).
* Initial Implementation of progress reports during pushJameson Miller2013-09-301-0/+30
| | | | | | | | | | | | | | | | | | | | | | This adds the basics of progress reporting during push. While progress for all aspects of a push operation are not reported with this change, it lays the foundation to add these later. Push progress reporting can be improved in the future - and consumers of the API should just get more accurate information at that point. The main areas where this is lacking are: 1) packbuilding progress: does not report progress during deltafication, as this involves coordinating progress from multiple threads. 2) network progress: reports progress as objects and bytes are going to be written to the subtransport (instead of as client gets confirmation that they have been received by the server) and leaves out some of the bytes that are transfered as part of the push protocol. Basically, this reports the pack bytes that are written to the subtransport. It does not report the bytes sent on the wire that are received by the server. This should be a good estimate of progress (and an improvement over no progress).
* pack: fix memory leak in error pathRémi Duraffort2013-07-151-1/+3
|
* Mutex init can failRussell Belfer2013-05-311-0/+3
| | | | | | | It is obviously quite a serious problem if this happens, but mutex initialization can fail and we should detect it. It's a bit like a memory allocation failure, in that you're probably pretty screwed if this occurs, but at least we'll catch it.
* packbuilder: also write index in git_packbuilder_writeMichael Schubert2013-05-271-22/+36
| | | | | | git_packbuilder_write() used to write a packfile to the passed file path. Instead, ask for a destination directory and create both the packfile and an index, as most users probably do expect.
* Fixes indentationXavier L2013-04-231-8/+8
|
* Added function to insert commit into packXavier L2013-04-231-0/+15
|
* indexer: use a hashtable for keeping track of offsetsCarlos Martín Nieto2013-03-031-2/+0
| | | | | | | | | | These offsets are needed for REF_DELTA objects, which encode which object they use as a base, but not where it lies in the packfile, so we need a list. These objects are mostly from older packfiles, before OFS_DELTA was widely spread. The time spent in indexing these packfiles is greatly reduced, though remains above what git is able to do.
* Add git_push_options, to set packbuilder parallelismPhilip Kelley2013-02-111-0/+7
|
* A simple perf optimization in pack-objects.cPhilip Kelley2013-01-221-13/+16
|
* update copyrightsEdward Thomson2013-01-081-1/+1
|
* Always check the result of git_mutex_lockJustin Spahr-Summers2012-12-091-4/+14
|
* Push! By schu, phkelley, and congyiwu, et alPhilip Kelley2012-11-281-12/+4
|
* Fix warnings on Win64 buildRussell Belfer2012-11-271-12/+13
|
* API review / update for tree.hRussell Belfer2012-11-271-1/+1
|
* Rename ref and reflog apis for consistencyBen Straub2012-11-271-1/+2
|
* Merge pull request #1016 from arrbee/fix-checkout-dir-removalVicent Martí2012-11-131-6/+6
|\ | | | | Update checkout with new strategies & behavior
| * Fix warnings and valgrind issuesRussell Belfer2012-11-091-6/+6
| | | | | | | | | | This fixes some various warnings that showed up in Travis and a couple uses of uninitialized memory and one memory leak.
* | Remove git_hash_ctx_new - callers now _ctx_init()Edward Thomson2012-11-131-11/+9
| |
* | Win32 CryptoAPI and CNG support for SHA1Edward Thomson2012-11-131-12/+13
|/
* Merge pull request #1034 from carlosmn/packbuilder-foreachVicent Martí2012-11-051-0/+16
|\ | | | | Let the user grab the packfile as it's being written
| * packbuilder: add accessors for the number of total and written objectsCarlos Martín Nieto2012-11-011-0/+10
| |
| * packbuilder: add git_packbuilder_foreachCarlos Martín Nieto2012-11-011-0/+6
| | | | | | | | | | Let the user get each object as a buffer+size pair so they can handle the packfile content as they need to.
* | Reorganize transport architecture (squashed 3)Philip Kelley2012-11-011-4/+4
|/
* Incremental improvements to pack-objects logicPhilip Kelley2012-10-171-89/+86
| | | | Incorporate feedback for incr. improvements to pack-objects
* fixup! gsoc-pack-objects WIPMichael Schubert2012-10-091-60/+39
| | | | Use khash instead of git.git's hashing algorithm.
* gsoc-pack-objects WIPMichael Schubert2012-10-091-0/+1339