ref: 4ae8c598af6e60a9705ddfa373dfad090451968e
parent: cbd0ebcb94afab9f5183ffc7e5a3ab1ed78d83d4
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Jan 29 23:57:45 EST 2025
git/pull: show update message only when not quiet, and only after updates
--- a/sys/src/cmd/git/pull
+++ b/sys/src/cmd/git/pull
@@ -66,12 +66,12 @@
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)
+if(~ $#quiet 0){
git/log -s -e $oldcommit'..'$newcommit
-
+ echo $remote':' $oldcommit '=>' $newcommit
+}
exit ''
--
⑨