pub fn rev_list(
cwd: &Path,
include: &[&str],
exclude: &[&str],
) -> Result<Vec<RevListEntry>, Error>Expand description
Run git rev-list --objects --do-walk --stdin -- against cwd with
the given include/exclude refs and collect every emitted object.
Refs are passed via stdin (one per line) so we don’t blow the
command-line length limit on big refspecs. Excludes are prefixed with
^ per git-rev-list(1).
Returns OIDs in the order git emitted them. Callers that need deduplication should layer it on top.