From f04b767a4d418a7d297cd1650eb56e978f5badae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Katona?= Date: Thu, 28 Jul 2022 09:16:28 -0700 Subject: [PATCH] fix uncommited line output --- src/vcs.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/vcs.rs b/src/vcs.rs index 5bab0e3..99da7f1 100644 --- a/src/vcs.rs +++ b/src/vcs.rs @@ -106,11 +106,12 @@ impl Vcs { let mut once = true; for project in &self.projects { - if once { - println!("\n{}\n", "** Projects with uncommitted changes **".italic()); - once = false; - } if !project.repo.uncommitted_changes()?.is_empty() { + if once { + println!("\n{}\n", "** Projects with uncommitted changes **".italic()); + once = false; + } + println!( "{}", project.display(ProjectDisplayOptions::Changes.into())?