summaryrefslogtreecommitdiff
path: root/examples/rev-list.c
Commit message (Collapse)AuthorAgeFilesLines
* revspec: rename git_revparse_mode_t to git_revspec_tethomson/revparseEdward Thomson2021-01-311-1/+1
| | | | | | The information about the type of a revision spec is not information about the parser. Name it accordingly, so that `git_revparse_mode_t` is now `git_revspec_t`. Deprecate the old name.
* examples: buff up rev-list by adding OID supportEtienne Samson2019-11-061-22/+58
| | | | This allows the example to be used as a quick revwalk test harness.
* examples: create common lg2 executablePatrick Steinhardt2019-02-151-6/+1
| | | | | | | | | | | | | | | | | | 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.
* Rename git_threads_ to git_libgit2_Carlos Martín Nieto2014-11-081-2/+2
| | | | | | This describes their purpose better, as we now initialize ssl and some other global stuff in there. Calling the init function is not something which has been optional for a while now.
* Factor 40 and 41 constants from source.Ciro Santilli2014-09-161-2/+2
|
* Replace copyright topmatter in example filesBen Straub2013-11-021-3/+11
|
* rev-list.c example: use common utils, reorganizeBen Straub2013-10-301-34/+28
|
* Fix trailing whitespacesnulltoken2013-05-151-1/+0
|
* Fix examplesvmg/unified-revisionVicent Marti2013-04-161-9/+11
|
* Clean up example code.Ben Straub2013-04-151-3/+3
|
* Change git_revparse to output git_object pointersBen Straub2013-04-151-6/+10
| | | | This will probably prevent many lookup/free operations in calling code.
* Deprecate git_revparse_single and _rangelikeBen Straub2013-04-091-15/+13
|
* examples: rev-listGreg Price2013-04-061-0/+116
This demonstrates parts of the interface for specifying revisions that Git users are familiar with from 'git rev-list', 'git log', and other Git commands. A similar query interface is used in out-of-core command-line programs that browse a Git repo (like 'tig'), and may be useful for an 'advanced search' interface in GUI or web applications. In this version, we parse all the query modifiers we can support with the existing logic in revwalk: basic include/exclude commits, and the ordering flags. More logic will be required to support '--grep', '--author', the pickaxe '-S', etc. Signed-off-by: Greg Price <price@mit.edu>