packfile

Crates.iopackfile
lib.rspackfile
version0.1.2
sourcesrc
created_at2022-10-22 13:52:35.369859
updated_at2024-02-23 10:14:08.610268
descriptionA simple library providing utilities to generate Git Packfiles in memory and send them to clients
homepage
repositoryhttps://github.com/w4/packfile
max_upload_size
id694415
size53,069
jordan (w4)

documentation

README

Packfile Crate API codecov

packfile is a simple library providing utilities to generate Git Packfiles in memory.

Usage:

use packfile::{high_level::GitRepository, low_level::PackFile};

let mut repo = GitRepository::default();
repo.insert(&["path", "to"], "file.txt", "hello world!".into()).unwrap();
let (_commit_hash, entries) =
    repo.commit("Linus Torvalds", "torvalds@example.com", "Some commit message").unwrap();

let _packfile = PackFile::new(&entries);
// ... packfile can then be encoded within a SidebandData to send the data to a client
Commit count: 15

cargo fmt