Expand description
Infrastructure: the only module that talks to gix and the filesystem.
Repo has two constructors. Repo::open reads a real repository;
Repo::create_null returns an in-memory stand-in driven by canned commits,
so application and logic code can be tested without touching git.
Structs§
- Nulled
Commit - A canned commit used to build a nulled
Repoin tests. - Repo
- A git repository, or a nulled stand-in for it.
- Walked
Commit - A commit yielded by
Repo::walk: its logic-facing metadata plus an opaque handle the wrapper uses to compute the numstat later.
Functions§
- parse_
date - Parse a
--since/--untilstyle date into seconds since the Unix epoch. Accepts ISO 8601, RFC 2822, unix timestamps, and relative spellings like “2 weeks ago” (a documented subset of git’s approxidate).