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
b29602e6
Commit
b29602e6
authored
Dec 26, 2011
by
Robby Russell
Browse files
Merge pull request #764 from Fl4t/submodules
Ignore submodules dirty in prompt info
parents
2b866249
dd14e075
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/git.zsh
View file @
b29602e6
...
...
@@ -6,7 +6,7 @@ function git_prompt_info() {
# Checks if working tree is dirty
parse_git_dirty
()
{
if
[[
-n
$(
git status
-s
2> /dev/null
)
]]
;
then
if
[[
-n
$(
git status
-s
--ignore-submodules
=
dirty
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