Skip to main content

write

Function write 

Source
pub fn write(
    refs: &[(&[u8], Oid)],
    shallow: &[Oid],
    pack_data: &[u8],
) -> Result<Vec<u8>>
Expand description

refs と packfile から bundle v2 を構成する。

shallow は fetch が報告した履歴の打ち切り点。その commit の parent のうち pack に含まれないものを prerequisite として記録する (bundle に無い前提 commit を明示し、本ライブラリの walk と git の双方が境界を判定できるように する)。