diff options
-rw-r--r-- | source/01_raw/commits.xsl | 4 | ||||
-rwxr-xr-x | utility/git_log.sh | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/source/01_raw/commits.xsl b/source/01_raw/commits.xsl index bfc265b..c606030 100644 --- a/source/01_raw/commits.xsl +++ b/source/01_raw/commits.xsl @@ -13,10 +13,12 @@ <target mode="plain" value="commits.xml"/> </xsl:variable> +<xsl:variable name="commit_count">20</xsl:variable> + <xsl:template match="repositories/entry"> <entry handle="{@handle}"> <xsl:copy-of select="InputXSLT:external-command( - concat('./utility/git_log.sh ', path) + concat('./utility/git_log.sh ', path, ' ', $commit_count) )/self::command/commit"/> </entry> </xsl:template> diff --git a/utility/git_log.sh b/utility/git_log.sh index 2dfb0bd..4d00552 100755 --- a/utility/git_log.sh +++ b/utility/git_log.sh @@ -2,6 +2,6 @@ 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 \ + 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' |