git/pull: only show commit summary after updating branches

this makes human error somewhat harder in noscroll windows.
This commit is contained in:
Ori Bernstein 2024-12-21 22:40:27 +00:00
parent 83fe095033
commit 60ea3e6d25

View file

@ -63,10 +63,15 @@ if(! ~ `{git/query HEAD $remote @} `{git/query HEAD}){
} }
exit diverged 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 # The remote is directly ahead of the local, and we have
# no local commits that need merging. # no local commits that need merging.
if(~ $#quiet 0) if(~ $#quiet 0)
git/log -s -e $local'..'$remote git/log -s -e $oldcommit'..'$newcommit
echo $remote':' `{git/query $local} '=>' `{git/query $remote}
git/branch -mnb $remote $local
exit '' exit ''