git-utils 0.0.0

Rewrite git commit time in history
Documentation
1
2
3
4
5
6
7
8
9
10
use git2::{Error, ErrorClass, ErrorCode};

pub type GitResult<T = ()> = Result<T, Error>;

pub fn runtime_error<T, S>(msg: S) -> GitResult<T>
where
    S: Into<String>,
{
    Err(Error::new(ErrorCode::User, ErrorClass::Invalid, msg.into()))
}