In pygit2
, Repository.walk
can be used to traverse commits starting from a commit.
However the docs do not explictly say whether all commits in the repository will be traversed, including dangling commits, or just the parents and children of the starting commit.
If this does not include dangling commits, is there anything I can do to traverse them?
Found relevant material in this answer.
Repository.walk
does not care about dangling commits, howevergit_odb_foreach
can be used, which inpygit2
terms simply translates to iterating the repository object (check theRepository_as_iter
function).