Skip to main content

Module log

Module log 

Source
Available on crate feature parse only.
Expand description

Parser for git log output using a fixed token format.

Use LOG_FORMAT as --format=<fmt> so log emits stable, parseable records: fields separated by NUL \x1f (unit separator) and entries separated by NUL \x1e (record separator).

Structs§

CommitEntry
A single parsed commit entry.

Constants§

LOG_FORMAT
Format string to pass as --format=<fmt> so entries parse cleanly.

Functions§

parse_log
Parse the output of git log --format=<LOG_FORMAT>.