mirror of
https://github.com/nushell/nushell
synced 2025-01-13 21:55:07 +00:00
chore: omit the entire git.rs file when starship is used
This commit is contained in:
parent
47150efc14
commit
f8d337ad29
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue