From 9f2f8e150ef38745581c090ff213589b292b60f4 Mon Sep 17 00:00:00 2001 From: NerdyPepper Date: Tue, 21 May 2019 22:48:53 +0530 Subject: ew colors are not fun --- src/vcs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/vcs.rs b/src/vcs.rs index 5201886..5cdce31 100644 --- a/src/vcs.rs +++ b/src/vcs.rs @@ -42,11 +42,11 @@ pub fn vcs_status() -> Option<(colored::ColoredString, colored::ColoredString)> let commit_color = env::var("COMMIT_COLOR").unwrap_or("bright black".into()); if reference.is_branch() { - branch = format!("{}", reference.shorthand().unwrap()).color(branch_color); + branch = format!("{}{}", reference.shorthand().unwrap(), commit_dist).color(branch_color); } else { let commit = reference.peel_to_commit().unwrap(); let id = commit.id(); - branch = format!("{:.6}", id).color(commit_color); + branch = format!("{:.6}{}", id, commit_dist).color(commit_color); } let git_clean_color = env::var("GIT_CLEAN_COLOR").unwrap_or("green".into()); -- cgit v1.2.3