ref: bf60f7fe0f3f8dda0274d02de3dee382882c1787
parent: 01041c59d420595cf51b6061be4f2d0f6114b4e7
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
@@ -72,14 +72,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
}