ref: c28f07b5840216c4e83e1d3b21d8a9ed7c41f8f9
parent: e03915a9f7d8c040c3b7f4e8de4f69f62aeefc99
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 ''
--
⑨