mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-22 20:29:42 +02:00
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
This commit is contained in:
parent
ab89a00f5c
commit
6bef1d9458
@ -64,14 +64,16 @@ commit_entry()
|
||||
<TABLE bgcolor="$SEP_COLOR" cellspacing=0 width="100%"><TR><TD></TABLE>
|
||||
EOF
|
||||
echo "<PRE>"
|
||||
( 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;s/>/\>/g' |
|
||||
if [ -z "$SCHHIST_COMMIT_TEMPLATE" ]; then
|
||||
cat
|
||||
else
|
||||
url=`echo "$SCHHIST_COMMIT_TEMPLATE" | sed "s/{}/$next/g"`
|
||||
sed "s|^commit |<A href=\"$url\">commit</a> |"
|
||||
fi |
|
||||
sed '/^<.*>commit</n;s/&/&/g;s/</\</g;s/>/\>/g'
|
||||
sed "1s|^|<A href=\"$url\"><B>\>\>\></B></a> |"
|
||||
fi
|
||||
echo "</PRE>"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user