mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
git/pull: only show commit summary after updating branches
this makes human error somewhat harder in noscroll windows.
This commit is contained in:
parent
83fe095033
commit
60ea3e6d25
1 changed files with 8 additions and 3 deletions
|
@ -63,10 +63,15 @@ if(! ~ `{git/query HEAD $remote @} `{git/query HEAD}){
|
|||
}
|
||||
exit diverged
|
||||
}
|
||||
|
||||
oldcommit=`{git/query $local}
|
||||
newcommit=`{git/query $remote}
|
||||
echo $remote':' $oldcommit '=>' `$newcommit
|
||||
git/branch -mnb $remote $local
|
||||
|
||||
# The remote is directly ahead of the local, and we have
|
||||
# no local commits that need merging.
|
||||
if(~ $#quiet 0)
|
||||
git/log -s -e $local'..'$remote
|
||||
echo $remote':' `{git/query $local} '=>' `{git/query $remote}
|
||||
git/branch -mnb $remote $local
|
||||
git/log -s -e $oldcommit'..'$newcommit
|
||||
|
||||
exit ''
|
||||
|
|
Loading…
Reference in a new issue