Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
71e6d5fd
Unverified
Commit
71e6d5fd
authored
Jan 08, 2022
by
Fabian Günter
Committed by
GitHub
Jan 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(svn): fix output order in `svn_dirty_choose` (#10572)
parent
4e2f4cdf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
svn.plugin.zsh
plugins/svn/svn.plugin.zsh
+2
-2
No files found.
plugins/svn/svn.plugin.zsh
View file @
71e6d5fd
...
@@ -67,10 +67,10 @@ svn_dirty_choose() {
...
@@ -67,10 +67,10 @@ svn_dirty_choose() {
root
=
$(
sed
-n
's/^Working Copy Root Path: //p'
<<<
"
${
1
:-$(
LANG
=
svn info 2>/dev/null
)}
"
)
root
=
$(
sed
-n
's/^Working Copy Root Path: //p'
<<<
"
${
1
:-$(
LANG
=
svn info 2>/dev/null
)}
"
)
if
LANG
=
svn status
"
$root
"
2>/dev/null |
command grep
-Eq
'^\s*[ACDIM!?L]'
;
then
if
LANG
=
svn status
"
$root
"
2>/dev/null |
command grep
-Eq
'^\s*[ACDIM!?L]'
;
then
# Grep exits with 0 when "One or more lines were selected", return "dirty".
# Grep exits with 0 when "One or more lines were selected", return "dirty".
echo
$
1
echo
$
2
else
else
# Otherwise, no lines were found, or an error occurred. Return clean.
# Otherwise, no lines were found, or an error occurred. Return clean.
echo
$
2
echo
$
3
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