This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use git2::Delta; | |
use git2::DiffOptions; | |
use git2::Repository; | |
use std::collections::BTreeMap; | |
use std::env::set_current_dir; | |
use std::process::Command; | |
fn main() { | |
let repo = Repository::open_from_env().unwrap(); | |
set_current_dir(repo.workdir().unwrap()).unwrap(); |