summaryrefslogtreecommitdiff
path: root/include/git2/graph.h
Commit message (Collapse)AuthorAgeFilesLines
* Swap the order of the `git_graph_reachable_from_any` paramslhchavez2021-07-271-2/+2
| | | | len, array -> array, len
* graph: Create `git_graph_reachable_from_any()`lhchavez2021-07-271-2/+20
| | | | | | | | | | | | | | This change introduces a new API function `git_graph_reachable_from_any()`, that answers the question whether a commit is reachable from any of the provided commits through following parent edges. This function can take advantage of optimizations provided by the existence of a `commit-graph` file, since it makes it faster to know whether, given two commits X and Y, X cannot possibly be an reachable from Y. Part of: #5757
* graph: document that a commit isn't a descendant of itselfJacob Wahlgren2017-10-061-0/+3
|
* Add `git_graph_descendant_of`.Arthur Schreiber2014-01-281-0/+14
|
* graph: make the ahead-behind docs clearerCarlos Martín Nieto2013-03-221-5/+10
| | | | | Explain it in local-upstream branch terms so it's easier to grasp than with the `one` and `two` naming from the merge-base code.
* update copyrightsEdward Thomson2013-01-081-1/+1
|
* Rename git_count_ahead_behind -> git_graph_ahead_behindScott J. Goldman2012-11-281-0/+36
Moved it into graph.{c,h} which i created for the new "graph" functions namespace. Also adjusted the function prototype to use `size_t` and `const git_oid *`.