Skip to main content

Module history

Module history 

Source
Expand description

History DAG โ€” traversal of commit parent_ids to form a directed acyclic graph.

Provides log (ordered commit history) and ancestors (full BFS traversal).

Functionsยง

ancestors
Return all ancestors of a commit (BFS traversal of the DAG).
find_common_ancestor
Find the most recent common ancestor of two commits (for 3-way merge).
log
Return the commit log for a branch: walk parent_ids from the given commit.