Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
11576dd4
Commit
11576dd4
authored
Feb 13, 2013
by
Yoav Weiss
Browse files
Fixed dirty check to include files added to index
parent
171a76a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/git.zsh
View file @
11576dd4
...
...
@@ -13,7 +13,7 @@ parse_git_dirty() {
if
[[
$POST_1_7_2_GIT
-gt
0
]]
;
then
SUBMODULE_SYNTAX
=
"--ignore-submodules=dirty"
fi
if
[[
-n
$(
git diff
${
SUBMODULE_SYNTAX
}
2> /dev/null
)
]]
;
then
if
[[
-n
$(
git diff
${
SUBMODULE_SYNTAX
}
HEAD
2> /dev/null
)
]]
;
then
echo
"
$ZSH_THEME_GIT_PROMPT_DIRTY
"
else
echo
"
$ZSH_THEME_GIT_PROMPT_CLEAN
"
...
...
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