From 78634aa28ed45958d415354a1a102b43d2583c29 Mon Sep 17 00:00:00 2001 From: Michal Date: Sun, 24 Jul 2022 16:15:55 +0100 Subject: [PATCH] Added checking for uncomitted added changes for dirty check --- src/operations/info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operations/info.rs b/src/operations/info.rs index ecc7acf..a8e39f9 100644 --- a/src/operations/info.rs +++ b/src/operations/info.rs @@ -53,7 +53,7 @@ pub fn git_status(verbose: bool, repo: &str, colorblind: bool) -> String { let output = String::from_utf8(output.stdout).unwrap(); log!(verbose, "Git status: {}", output); - let unstaged = output.contains("Changes not staged for commit"); + let unstaged = output.contains("Changes not staged for commit") || output.contains("Changes to be committed"); let untracked = output.contains("Untracked files"); let dirty = unstaged || untracked;