pub fn parse_line(line: &[u8], hash_kind: Kind) -> Result<PushCommand>Expand description
Parse one command line, having already had its capability suffix removed by
capabilities::split.
hash_kind is the repository’s, and an oid of the wrong width is refused
here rather than downstream: a 40-hex id in a sha256 repository names
nothing, and accepting it produces a rejection whose message blames the
reference instead of the object format.