Skip to main content

set_extra_header

Function set_extra_header 

Source
pub fn set_extra_header(extra: &mut Vec<u8>, name: &str, line: &[u8])
Expand description

Replace every header block named name with line, or append line when no such block exists.

line must be a full header record (name SP value LF, plus any SP-prefixed continuation lines and their trailing LFs) in the same encoding used in crate::objects::CommitData::extra_headers / crate::objects::TagData::extra_headers.