mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
updated git.zsh so that the git status indicator will work even with older versions of git. Also cleaned up some crap
This commit is contained in:
parent
dc2f28e936
commit
468c5a20e3
1 changed files with 0 additions and 4 deletions
|
|
@ -6,8 +6,6 @@ function git_prompt_info() {
|
||||||
|
|
||||||
# Checks if working tree is dirty
|
# Checks if working tree is dirty
|
||||||
parse_git_dirty() {
|
parse_git_dirty() {
|
||||||
#do stuff here
|
|
||||||
ver=$(git --version | cut -d " " -f 3)
|
|
||||||
if $(is_legacy_git); then
|
if $(is_legacy_git); then
|
||||||
echo $(parse_legacy_git_dirty)
|
echo $(parse_legacy_git_dirty)
|
||||||
else
|
else
|
||||||
|
|
@ -46,8 +44,6 @@ parse_recent_git_dirty() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Checks if there are commits ahead from remote
|
# Checks if there are commits ahead from remote
|
||||||
function git_prompt_ahead() {
|
function git_prompt_ahead() {
|
||||||
if $(echo "$(git log origin/$(current_branch)..HEAD 2> /dev/null)" | grep '^commit' &> /dev/null); then
|
if $(echo "$(git log origin/$(current_branch)..HEAD 2> /dev/null)" | grep '^commit' &> /dev/null); then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue