Skip to main content

LOG_FORMAT

Constant LOG_FORMAT 

Source
pub const LOG_FORMAT: &str = "%H\x1f%h\x1f%an\x1f%ae\x1f%aI\x1f%cn\x1f%ce\x1f%cI\x1f%s\x1f%b\x1e";
Available on crate feature parse only.
Expand description

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

Fields (in order): full SHA, short SHA, author name, author email, author date (ISO 8601 strict), committer name, committer email, committer date, subject, body. Body is last because it may contain newlines; records are terminated by \x1e.