rs-git-lib 0.2.1

A native rust git library
Documentation
use std::io::Result as IOResult;

use crate::packfile::packfile_parser::PackFileParser;
use crate::packfile::refs::{Ref, Refs};
use crate::transport::client::Protocol;

#[derive(Debug)]
pub struct FileProtocol {
    path: String,
}

impl FileProtocol {
    pub fn new(path: String) -> Self {
        FileProtocol { path }
    }
}

impl Protocol for FileProtocol {
    fn discover_refs(&mut self) -> IOResult<Refs> {
        unimplemented!()
    }

    fn fetch_packfile(&mut self, _reference: &[Ref]) -> IOResult<PackFileParser> {
        unimplemented!()
    }

    fn protocol(&self) -> &'static str {
        "file-protocol"
    }
}