Skip to content
/ packfile Public

🪆 a simple library providing utilities to generate Git Packfiles in memory and send them to clients

License

Notifications You must be signed in to change notification settings

w4/packfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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", "[email protected]", "Some commit message").unwrap();

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

About

🪆 a simple library providing utilities to generate Git Packfiles in memory and send them to clients

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages