summaryrefslogtreecommitdiff
path: root/examples/network/index-pack.c
Commit message (Collapse)AuthorAgeFilesLines
* examples: create common lg2 executablePatrick Steinhardt2019-02-151-87/+0
| | | | | | | | | | | | | | | | | | Inside of our networking example code, we have a git2 executable that acts as an entry point to all the different network examples. As such, it is kind of the same like the normal git(1) executable in that it simply arbitrates to the respective subcommands. Let's extend this approach and merge all examples into a single standalone lg2 executable. Instead of building an executable for all the existing examples we have, we now bundle them all inside of the lg2 one and let them be callable via subcommands. In the process, we can get rid of duplicated library initialization, deinitialization and repository discovery code. Instead of having each subcommand handle these on its own, we simply do it inside of the single main function now.
* examples: merge common network codePatrick Steinhardt2019-02-151-5/+2
| | | | | | | | | | | | Right now, we have two sets of "common" code, one containing general common code and one containing network common code. As we intend to get rid of the network subdirectory and instead merge all examples into a single standalone executable, this distinction doesn't make a lot of sense now. Furthermore, the common network code is not that big. Let's get rid of the common network code by merging it into the general common code.
* Merge pull request #4374 from pks-t/pks/pack-file-verifyEdward Thomson2018-08-261-1/+1
|\ | | | | Pack file verification
| * indexer: introduce options struct to `git_indexer_new`Patrick Steinhardt2018-06-221-1/+1
| | | | | | | | | | | | | | | | | | | | 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.
* | treewide: remove use of C++ style commentsPatrick Steinhardt2018-07-131-2/+4
|/ | | | | | | | | C++ style comment ("//") are not specified by the ISO C90 standard and thus do not conform to it. While libgit2 aims to conform to C90, we did not enforce it until now, which is why quite a lot of these non-conforming comments have snuck into our codebase. Do a tree-wide conversion of all C++ style comments to the supported C style comments to allow us enforcing strict C90 compliance in a later commit.
* update example to new packfile creation signatureEdward Thomson2013-11-071-1/+1
|
* indexer: remove the stream infixCarlos Martín Nieto2013-10-301-6/+6
| | | | | | | | | | | 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-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.
* Fix clang warnings and improve checksRussell Belfer2013-04-091-3/+4
|
* update examples to work on windowsEdward Thomson2013-01-231-2/+14
|
* Renaming: fix exampleBen Straub2012-10-241-4/+4
|
* Fix example compilationBen Straub2012-10-191-1/+1
|
* examples: fix warnings in network/Carlos Martín Nieto2012-07-301-37/+10
|
* indexer: don't use '/objects/pack/' unconditionallyCarlos Martín Nieto2012-06-281-1/+1
| | | | | Not everyone who indexes a packfile wants to put it in the standard git repository location.
* examples/network: consistently use tabs for indentationCarlos Martín Nieto2012-05-241-76/+76
|
* errors: Rename the generic return codesVicent Martí2012-05-181-3/+3
|
* examples: stream indexer exampleCarlos Martín Nieto2012-04-131-0/+55
|
* examples: add ls-remote, fetch and index-pack examplesCarlos Martín Nieto2011-10-031-0/+47
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>