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
7cdb6d66
Commit
7cdb6d66
authored
Apr 24, 2013
by
Robby Russell
Browse files
Options
Browse Files
Download
Plain Diff
Resolving conflict when merging in 1570
parents
d6a36b17
9245a308
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
git.zsh
lib/git.zsh
+4
-4
No files found.
lib/git.zsh
View file @
7cdb6d66
...
@@ -14,20 +14,20 @@ parse_git_dirty() {
...
@@ -14,20 +14,20 @@ parse_git_dirty() {
if
[[
"
$(
git config
--get
oh-my-zsh.hide-status
)
"
!=
"1"
]]
;
then
if
[[
"
$(
git config
--get
oh-my-zsh.hide-status
)
"
!=
"1"
]]
;
then
if
[[
$POST_1_7_2_GIT
-gt
0
]]
;
then
if
[[
$POST_1_7_2_GIT
-gt
0
]]
;
then
SUBMODULE_SYNTAX
=
"--ignore-submodules=dirty"
SUBMODULE_SYNTAX
=
"--ignore-submodules=dirty"
fi
fi
if
[[
"
$DISABLE_UNTRACKED_FILES_DIRTY
"
!=
"true"
]]
;
then
if
[[
"
$DISABLE_UNTRACKED_FILES_DIRTY
"
!=
"true"
]]
;
then
GIT_STATUS
=
$(
git status
-s
${
SUBMODULE_SYNTAX
}
2> /dev/null |
tail
-n1
)
GIT_STATUS
=
$(
git status
-s
${
SUBMODULE_SYNTAX
}
2> /dev/null |
tail
-n1
)
else
else
GIT_STATUS
=
$(
git status
-s
${
SUBMODULE_SYNTAX
}
-uno
2> /dev/null |
tail
-n1
)
GIT_STATUS
=
$(
git status
-s
${
SUBMODULE_SYNTAX
}
-uno
2> /dev/null |
tail
-n1
)
fi
fi
if
[[
-n
$
GIT_STATUS
&&
"
$GIT_STATUS
"
!=
"
$CLEAN_MESSAGE
"
]]
;
then
if
[[
-n
$
(
git status
-s
${
SUBMODULE_SYNTAX
}
-uno
2> /dev/null
)
]]
;
then
echo
"
$ZSH_THEME_GIT_PROMPT_DIRTY
"
echo
"
$ZSH_THEME_GIT_PROMPT_DIRTY
"
else
else
echo
"
$ZSH_THEME_GIT_PROMPT_CLEAN
"
echo
"
$ZSH_THEME_GIT_PROMPT_CLEAN
"
fi
fi
else
else
echo
"
$ZSH_THEME_GIT_PROMPT_CLEAN
"
echo
"
$ZSH_THEME_GIT_PROMPT_CLEAN
"
fi
fi
}
}
# get the difference between the local and remote branches
# get the difference between the local and remote branches
...
...
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