aboutsummaryrefslogtreecommitdiff
path: root/utility/git_log.sh
blob: 4d00552e3c195b2db851d6ea8572f739f92b6a23 (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 -n $2 --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'