Skip to main content

attach

Function attach 

Source
pub fn attach(line: &mut Vec<u8>, capabilities: &[String])
Expand description

Append capabilities to line the way the wire wants it: a NUL, then the list. A no-op for an empty list, because git reads a trailing NUL with nothing after it as a capability list it then fails to parse.