summaryrefslogtreecommitdiff
path: root/lib/git.zsh
diff options
context:
space:
mode:
authorSeamile <lanhuermao@gmail.com>2021-01-02 18:57:06 +0800
committerGitHub <noreply@github.com>2021-01-02 11:57:06 +0100
commit88ffc2f6666fe1196ae57cc75b559b08e08cb616 (patch)
treee7bef301c3893fb2a7db76c6b086e7d62f5463a7 /lib/git.zsh
parent0f6aa0182c8d13a2ff909b650d790f83373dc412 (diff)
downloadzsh-88ffc2f6666fe1196ae57cc75b559b08e08cb616.tar.gz
zsh-88ffc2f6666fe1196ae57cc75b559b08e08cb616.tar.bz2
zsh-88ffc2f6666fe1196ae57cc75b559b08e08cb616.zip
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.
Diffstat (limited to 'lib/git.zsh')
-rw-r--r--lib/git.zsh2
1 files changed, 1 insertions, 1 deletions
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'