Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: reujab/silver
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2eab3a87a0bbd82901d9f394cae1cb4259be7136
Choose a base ref
..
head repository: reujab/silver
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6c32e5bbff13e8b479820f95777240b1563bf55e
Choose a head ref
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/modules/git.rs
8 changes: 5 additions & 3 deletions src/modules/git.rs
Original file line number Diff line number Diff line change
@@ -10,9 +10,11 @@ pub fn segment(segment: &mut Segment, args: &[&str]) {
&shellexpand::full_with_context_no_errors(dir, dirs::home_dir, |s| {
std::env::var(s).map(Some).unwrap_or_default()
})
.into_owned())
.canonicalize()
.unwrap();
.into_owned(),
)
.canonicalize()
.unwrap();

if cwd == expanded {
return;
}