88ffc2f6666fe1196ae57cc75b559b08e08cb616

Author
Seamile <lanhuermao@gmail.com>
Committer
GitHub <noreply@github.com>
Date

Message

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.

Diff

 1diff --git a/lib/git.zsh b/lib/git.zsh
 2index 157c85062d29fbf29a9da344652cf34964faad37..34ffc7ab786684b4add7d0b91c720efb70c806ad 100644
 3--- a/lib/git.zsh
 4+++ b/lib/git.zsh
 5@@ -170,7 +170,7 @@ function git_prompt_status() {
 6     '\?\? '     'UNTRACKED'
 7     'A  '       'ADDED'
 8     'M  '       'ADDED'
 9-    'MM '       'ADDED'
10+    'MM '       'MODIFIED'
11     ' M '       'MODIFIED'
12     'AM '       'MODIFIED'
13     ' T '       'MODIFIED'