Skip to main content

Module repo

Module repo 

Source
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§

NulledCommit
A canned commit used to build a nulled Repo in tests.
Repo
A git repository, or a nulled stand-in for it.
WalkedCommit
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/--until style 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).