From 6bef1d9458409568ba7a7d6617e725ea7710d1e8 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 30 Aug 2010 04:46:19 -0300 Subject: [PATCH] Commit entries now show date date, not the hash. - scripts/schps2pdf: changed commit entry format from commit hash and author to author and date - scripts/schps2pdf: reordered sanitizing of commit entry to avoid having to special-case the link --- scripts/schhist2web | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/schhist2web b/scripts/schhist2web index 2ebc32c..c29ef05 100755 --- a/scripts/schhist2web +++ b/scripts/schhist2web @@ -64,14 +64,16 @@ commit_entry()
EOF echo "
"
-    ( cd "$dir" && git show --pretty=short --quiet $next; ) |
+    ( cd "$dir" && git show \
+        --pretty=format:"%aN <%aE>%n%ad, %ar%n%n    %s" \
+	--quiet $next; ) |
+      sed 's/&/&/g;s//\>/g' |
       if [ -z "$SCHHIST_COMMIT_TEMPLATE" ]; then
 	cat
       else
 	url=`echo "$SCHHIST_COMMIT_TEMPLATE" | sed "s/{}/$next/g"`
-	sed "s|^commit |commit |"
-      fi |
-      sed '/^<.*>commit/\>/g'
+	sed "1s|^|\>\>\> |"
+      fi
     echo "
" }