Skip to main content

Module rev_list

Module rev_list 

Source
Expand description

git rev-list --objects --do-walk --stdin wrapper.

Walks history reachable from include refs but not from exclude refs, emitting every commit + tree + blob OID along the way (with the blob’s path appended for blobs and trees that have a name in the parent tree). This is the entry point upstream uses to find every object that could be an LFS pointer; we then narrow with cat-file --batch-check and read the survivors with cat-file --batch.

Output format from git rev-list --objects is one object per line, either <oid> (commit) or <oid> <name> (tree/blob with a path).

Structs§

RevListEntry
One entry yielded by rev_list.

Functions§

rev_list
Run git rev-list --objects --do-walk --stdin -- against cwd with the given include/exclude refs and collect every emitted object.