From 88ffc2f6666fe1196ae57cc75b559b08e08cb616 Mon Sep 17 00:00:00 2001 From: Seamile Date: Sat, 2 Jan 2021 18:57:06 +0800 Subject: fix(lib): mark changes as MODIFIED on 'MM' in `git_prompt_status` (#9552) In the output of `git status -sb`, 'MM' indicates there are both added and modified changes. This change marks that case as MODIFIED instead of ADDED. --- lib/git.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/git.zsh') diff --git a/lib/git.zsh b/lib/git.zsh index 157c85062..34ffc7ab7 100644 --- a/lib/git.zsh +++ b/lib/git.zsh @@ -170,7 +170,7 @@ function git_prompt_status() { '\?\? ' 'UNTRACKED' 'A ' 'ADDED' 'M ' 'ADDED' - 'MM ' 'ADDED' + 'MM ' 'MODIFIED' ' M ' 'MODIFIED' 'AM ' 'MODIFIED' ' T ' 'MODIFIED' -- cgit v1.2.3-70-g09d2