chore: omit the entire git.rs file when starship is used

This commit is contained in:
Barnaby Keene 2019-10-09 08:42:36 +01:00
parent 47150efc14
commit f8d337ad29

View File

@ -1,7 +1,8 @@
#![cfg(not(feature = "starship-prompt"))]
use git2::{Repository, RepositoryOpenFlags};
use std::ffi::OsString;
#[cfg(not(feature = "starship-prompt"))]
pub fn current_branch() -> Option<String> {
let v: Vec<OsString> = vec![];
match Repository::open_ext(".", RepositoryOpenFlags::empty(), v) {