aboutsummaryrefslogtreecommitdiff
path: root/utility/git_log.sh
blob: 2dfb0bd3ffbb92da2b4020a0c7d7325355d4286b (plain)
1
2
3
4
5
6
7
#!/bin/sh

format="<commit hash=\"%h\"><date>%cd</date><message><![CDATA[# %B]]></message></commit>"

  git  --no-pager -C $1 log --date=iso --pretty=tformat:"$format"  \
| tidy --input-xml yes --escape-cdata true --wrap 0                \
| sed  -e 's~^\([\*]\)\{3\}~\t\t\*~g' -e 's~^\([\*]\)\{2\}~\t\*~g'