summaryrefslogtreecommitdiff
path: root/include/git2/indexer.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix struct indentationpunkymaniac2021-06-021-0/+1
|
* Remove bad space in documentationpunkymaniac2021-06-021-1/+1
|
* doc: add missing documentation commentsEtienne Samson2019-06-151-1/+4
|
* Rename opt init functions to `options_init`Edward Thomson2019-06-141-1/+1
| | | | | | | | | | | | | In libgit2 nomenclature, when we need to verb a direct object, we name a function `git_directobject_verb`. Thus, if we need to init an options structure named `git_foo_options`, then the name of the function that does that should be `git_foo_options_init`. The previous names of `git_foo_init_options` is close - it _sounds_ as if it's initializing the options of a `foo`, but in fact `git_foo_options` is its own noun that should be respected. Deprecate the old names; they'll now call directly to the new ones.
* indexer: deprecate git_transfer_progressEdward Thomson2019-02-221-4/+0
| | | | | | Safely deprecate `git_transfer_progress` and `git_transfer_progress_cb` types, forwarding them to the new `git_indexer_progress` and `git_indexer_progress_cb`.
* indexer: use git_indexer_progress throughoutEdward Thomson2019-02-221-3/+3
| | | | | Update internal usage of `git_transfer_progress` to `git_indexer_progreses`.
* indexer: rename git_transfer_progressEdward Thomson2019-02-221-0/+45
| | | | | | | | | | The name `git_transfer_progress` does not reflect its true purpose. It suggests that it's progress for a non-existence `git_transfer` object, and is used for indexing callbacks more broadly than just during transfers. Rename `git_transfer_progress` to `git_indexer_progress`.
* indexer: add ability to select connectivity checksPatrick Steinhardt2018-06-221-0/+3
| | | | | | | | | | | | | | Right now, we simply turn on connectivity checks in the indexer as soon as we have access to an object database. But seeing that the connectivity checks may incur additional overhead, we do want the user to decide for himself whether he wants to allow those checks. Furthermore, it might also be desirable to check connectivity in case where no object database is given at all, e.g. in case where a fully connected pack file is expected. Add a flag `verify` to `git_indexer_options` to enable additional verification checks. Also avoid to query the ODB in case none is given to allow users to enable checks when they do not have an ODB.
* indexer: introduce options struct to `git_indexer_new`Patrick Steinhardt2018-06-221-4/+27
| | | | | | | | | | We strive to keep an options structure to many functions to be able to extend options in the future without breaking the API. `git_indexer_new` doesn't have one right now, but we want to be able to add an option for enabling strict packfile verification. Add a new `git_indexer_options` structure and adjust callers to use that.
* Don't redefine the same callback types, their signatures may changeJacques Germishuys2014-04-211-1/+1
|
* Allow callers to set mode on packfile creationEdward Thomson2013-11-071-0/+2
|
* indexer: remove the stream infixCarlos Martín Nieto2013-10-301-8/+8
| | | | | | | | | | | 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.
* indexer: fix thin packsCarlos Martín Nieto2013-10-041-0/+4
| | | | | | 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.
* Fixed most documentation header bugsAndreas Linde2013-06-241-1/+1
| | | | | | | | | | | Fixed a few header @param and @return typos with the help of -Wdocumentation in Xcode. The following warnings have not been fixed: common.h:213 - Not sure how the documentation format is for '...' notes.h:102 - Correct @param name but empty text notes.h:111 - Correct @param name but empty text pack.h:140 - @return missing text pack.h:148 - @return missing text
* Move odb_backend implementors stuff into git2/sysRussell Belfer2013-04-211-21/+1
| | | | | | | | | | | | 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.
* 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.
* Document callback-triggered cancellationBen Straub2013-02-051-1/+5
|
* Allow progress callback to cancel fetchBen Straub2013-02-051-1/+1
| | | | | This works by having the indexer watch the return code of the callback, so will only take effect on object boundaries.
* update copyrightsEdward Thomson2013-01-081-1/+1
|
* API updates for indexer.hBen Straub2012-11-271-4/+4
|
* Network progress: rename thingsBen Straub2012-10-241-11/+11
| | | | | | | git_indexer_stats and friends -> git_transfer_progress* Also made git_transfer_progress members more sanely named.
* gitno_buffer: callback on each packetBen Straub2012-10-191-0/+1
| | | | | The fetch code takes advantage of this to implement a progress callback every 100kb of transfer.
* Fetch/indexer: progress callbacksBen Straub2012-10-191-1/+12
|
* 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.
* 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.
* indexer: don't use '/objects/pack/' unconditionallyCarlos Martín Nieto2012-06-281-2/+2
| | | | | Not everyone who indexes a packfile wants to put it in the standard git repository location.
* Fix spelling errors.Bruce Mitchener2012-05-191-1/+1
|
* transports: buffer the git requests before sending themCarlos Martín Nieto2012-04-251-1/+1
| | | | | | Trying to send every single line immediately won't give us any speed improvement and duplicates the code we need for other transports. Make the git transport use the same buffer functions as HTTP.
* indexer: add git_indexer_stream_free() and _hash()Carlos Martín Nieto2012-04-131-0/+17
|
* indexer: Add git_indexer_stream_finalize()Carlos Martín Nieto2012-04-131-0/+9
| | | | | Resolve any lingering deltas, write out the index file and rename the packfile.
* indexer: start writing the stream indexerCarlos Martín Nieto2012-04-131-0/+19
| | | | | | This will allow us to index a packfile as soon as we receive it from the network as well as storing it with its final name so we don't need to pass temporary file names around.
* Update Copyright headerschu2012-02-131-1/+1
| | | | Signed-off-by: schu <schu-github@schulog.org>
* include: Unify internal include strategiesVicent Marti2011-11-181-2/+2
| | | | | Do not add the `git2` path to internal includes, or that will cause an extra path dependency.
* Cleanup legal dataVicent Marti2011-09-191-0/+6
| | | | | | | | | | 1. The license header is technically not valid if it doesn't have a copyright signature. 2. The COPYING file has been updated with the different licenses used in the project. 3. The full GPLv2 header in each file annoys me.
* Add missing GIT_BEGIN_DECL and GIT_END_DECL to indexer headerLambert CLARA2011-08-131-0/+3
|
* Document the indexer callsCarlos Martín Nieto2011-08-031-1/+46
| | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Move pack index writing to a public functionCarlos Martín Nieto2011-08-031-0/+1
| | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Implement the indexerCarlos Martín Nieto2011-08-031-1/+3
| | | | | | Only v2 index files are supported. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Rename stuff to git_indexer_Carlos Martín Nieto2011-08-021-5/+5
| | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Start the runnerCarlos Martín Nieto2011-08-021-7/+11
| | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Intial indexer codeCarlos Martín Nieto2011-08-021-0/+15