Merge pull request #1 from fcamblor/log-oneline-fix
Added --pretty=oneline to `git log`
This commit is contained in:
commit
fa7c155b11
@ -101,8 +101,8 @@ function build_prompt {
|
||||
can_fast_forward=false
|
||||
can_fast_forward=false
|
||||
|
||||
commits_ahead=$(git log --topo-order --left-right ${current_commit_hash}...${upstream} | grep -c "^<" )
|
||||
commits_behind=$(git log --topo-order --left-right ${current_commit_hash}...${upstream} | grep -c "^>" )
|
||||
commits_ahead=$(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
|
||||
|
Loading…
Reference in New Issue
Block a user