rs-git-lib 0.2.1

A native rust git library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub(crate) mod file_client;
pub(crate) mod git_client;
pub(crate) mod http_client;
pub(crate) mod local_client;
pub(crate) mod packet;
pub(crate) mod ssh_client;

use crate::packfile::packfile_parser::PackFileParser;
use crate::packfile::refs::{Ref, Refs};
use std::io::Result as IOResult;

pub trait Protocol {
    fn discover_refs(&mut self) -> IOResult<Refs>;
    fn fetch_packfile(&mut self, wants: &[Ref]) -> IOResult<PackFileParser>;
    fn protocol(&self) -> &'static str;
}