Skip to main content

read_commit_subject_line

Function read_commit_subject_line 

Source
pub fn read_commit_subject_line(data: &[u8]) -> Result<String>
Expand description

First line of the commit message (subject), honoring the encoding header.

Scans headers only; does not require a full parse_commit parse.

ยงErrors

Returns Error::CorruptObject when commit headers are malformed.