Skip to main content

parse_reflog

Function parse_reflog 

Source
pub fn parse_reflog(bytes: &[u8]) -> Vec<ReflogEntry>
Expand description

Parse a whole reflog file’s bytes into entries.

Malformed lines are skipped rather than fatal: a reflog is local, mutable, and may be partially truncated, so robustness beats strictness here. This never panics regardless of input.