ref: ea10f7d39111597f2473b23be94f8ed0609102ef
parent: bd2ec60b9ed737e0b5a7d59b1995f73e235e21f8
author: Michael Forney <mforney@mforney.org>
date: Tue Mar 8 18:13:16 EST 2022
log: use git/log to enumerate commits This is needed to walk commits that have been merged in from branches.
--- a/common.rc
+++ b/common.rc
@@ -65,14 +65,13 @@
d=`{pwd}
commithash=`{cat $gitfs/$pref/hash | sed 1q}
count=()
- while (! ~ $#commithash 0 && ! ~ $#count $pcount) {
+ git/log -sc $commithash | while(commithash=`{read} && ! ~ $#count $pcount){
count=($count 1)
- formatcommit $puser $prepo $commithash
+ formatcommit $puser $prepo $commithash(1)
echo '<br/>'
- commithash=`{cat $gitfs/object/$commithash/parent | sed 1q}
}
- if(! ~ $"commithash '')
- echo '<a href="/'$puser/$prepo/$commithash'/log.html">Next</a>'
+ if(! ~ $#commithash 0)
+ echo '<a href="/'$puser/$prepo/$commithash(1)^'/log.html">Next</a>'
cd $d
}