Skip to main content

fetch_request

Function fetch_request 

Source
pub fn fetch_request(wants: &[Oid], depth: Option<u32>) -> Vec<u8>
Expand description

fetch command の request body を構築する。

negotiation は行わず常に done を送る (clone 相当)。depth を与えると shallow fetch (deepen) になる。delta の base は pack 内参照 (ofs-delta) を 許可する。