Skip to main content

first_commit_pack

Function first_commit_pack 

Source
pub fn first_commit_pack(
    kind: Kind,
    name: &str,
    text: &[u8],
    message: &str,
    when_unix: i64,
) -> Result<(Vec<u8>, String), String>
Expand description

Pure: the pack of a repository’s first commit — one file name holding text, in a tree, committed with message at when_unix (UTC). Answers the pack’s bytes and the commit’s id (hex).