Skip to content

Instantly share code, notes, and snippets.

use git2::Delta;
use git2::DiffOptions;
use git2::Repository;
use std::collections::HashSet;
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();