commit
67f2aec5b4
@ -103,7 +103,7 @@ function build_prompt {
|
|||||||
commits_behind=$(git log --pretty=oneline --topo-order --left-right ${current_commit_hash}...${upstream} | grep -c "^>" )
|
commits_behind=$(git log --pretty=oneline --topo-order --left-right ${current_commit_hash}...${upstream} | grep -c "^>" )
|
||||||
|
|
||||||
if [ ${commits_ahead} -gt 0 -a ${commits_behind} -gt 0 ]; then
|
if [ ${commits_ahead} -gt 0 -a ${commits_behind} -gt 0 ]; then
|
||||||
as_diverged=true
|
has_diverged=true
|
||||||
fi
|
fi
|
||||||
if [ ${commits_ahead} -eq 0 -a ${commits_behind} -gt 0 ]; then
|
if [ ${commits_ahead} -eq 0 -a ${commits_behind} -gt 0 ]; then
|
||||||
can_fast_forward=true
|
can_fast_forward=true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user