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
120db35b
Commit
120db35b
authored
Nov 27, 2012
by
Drarok Ithaqua
Browse files
Fix the backwards svn status, and add comments explaining which way grep does things.
parent
79e620c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/svn/svn.plugin.zsh
View file @
120db35b
function
svn_prompt_info
{
function
svn_prompt_info
{
if
[
$(
in_svn
)
]
;
then
if
[
$(
in_svn
)
]
;
then
echo
"
$ZSH_PROMPT_BASE_COLOR$ZSH_THEME_SVN_PROMPT_PREFIX
\
echo
"
$ZSH_PROMPT_BASE_COLOR$ZSH_THEME_SVN_PROMPT_PREFIX
\
...
@@ -29,9 +30,11 @@ function svn_get_rev_nr {
...
@@ -29,9 +30,11 @@ function svn_get_rev_nr {
function
svn_dirty_choose
{
function
svn_dirty_choose
{
if
[
$(
in_svn
)
]
;
then
if
[
$(
in_svn
)
]
;
then
svn status 2> /dev/null |
grep
-Eq
'^\s*[ACDIM!?L]'
svn status 2> /dev/null |
grep
-Eq
'^\s*[ACDIM!?L]'
if
[
$pipestatus
[
-1
]
-ne
0
]
;
then
if
[
$pipestatus
[
-1
]
-eq
0
]
;
then
# Grep exits with 0 when "One or more lines were selected", return "dirty".
echo
$1
echo
$1
else
else
# Otherwise, no lines were found, or an error occurred. Return clean.
echo
$2
echo
$2
fi
fi
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