Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
2b6c502a
Commit
2b6c502a
authored
Jan 23, 2018
by
Kimberly Zick
Committed by
Robby Russell
Jan 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add match for `MM` (result of `git commit -p` on a single changed file) to…
Add match for `MM` (result of `git commit -p` on a single changed file) to git_prompt_status (#3632)
parent
c3b072ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
git.zsh
lib/git.zsh
+4
-0
No files found.
lib/git.zsh
View file @
2b6c502a
...
@@ -141,11 +141,15 @@ function git_prompt_status() {
...
@@ -141,11 +141,15 @@ function git_prompt_status() {
STATUS
=
"
$ZSH_THEME_GIT_PROMPT_ADDED$STATUS
"
STATUS
=
"
$ZSH_THEME_GIT_PROMPT_ADDED$STATUS
"
elif
$(
echo
"
$INDEX
"
|
grep
'^M '
&> /dev/null
)
;
then
elif
$(
echo
"
$INDEX
"
|
grep
'^M '
&> /dev/null
)
;
then
STATUS
=
"
$ZSH_THEME_GIT_PROMPT_ADDED$STATUS
"
STATUS
=
"
$ZSH_THEME_GIT_PROMPT_ADDED$STATUS
"
elif
$(
echo
"
$INDEX
"
|
grep
'^MM '
&> /dev/null
)
;
then
STATUS
=
"
$ZSH_THEME_GIT_PROMPT_ADDED$STATUS
"
fi
fi
if
$(
echo
"
$INDEX
"
|
grep
'^ M '
&> /dev/null
)
;
then
if
$(
echo
"
$INDEX
"
|
grep
'^ M '
&> /dev/null
)
;
then
STATUS
=
"
$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS
"
STATUS
=
"
$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS
"
elif
$(
echo
"
$INDEX
"
|
grep
'^AM '
&> /dev/null
)
;
then
elif
$(
echo
"
$INDEX
"
|
grep
'^AM '
&> /dev/null
)
;
then
STATUS
=
"
$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS
"
STATUS
=
"
$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS
"
elif
$(
echo
"
$INDEX
"
|
grep
'^MM '
&> /dev/null
)
;
then
STATUS
=
"
$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS
"
elif
$(
echo
"
$INDEX
"
|
grep
'^ T '
&> /dev/null
)
;
then
elif
$(
echo
"
$INDEX
"
|
grep
'^ T '
&> /dev/null
)
;
then
STATUS
=
"
$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS
"
STATUS
=
"
$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS
"
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment