diff options
author | Adrian Kummerlaender | 2014-10-21 19:41:13 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2014-10-21 19:41:13 +0200 |
commit | 4c6e50ef89cc2b114a085df37b5f72e8b1876da7 (patch) | |
tree | f4128f6ac4459dc92eaee37e7a62d3707fd134a7 | |
parent | 41d175738c3f11579ad4033d0b2fc9f94b751d6f (diff) | |
download | Overview-4c6e50ef89cc2b114a085df37b5f72e8b1876da7.tar Overview-4c6e50ef89cc2b114a085df37b5f72e8b1876da7.tar.gz Overview-4c6e50ef89cc2b114a085df37b5f72e8b1876da7.tar.bz2 Overview-4c6e50ef89cc2b114a085df37b5f72e8b1876da7.tar.lz Overview-4c6e50ef89cc2b114a085df37b5f72e8b1876da7.tar.xz Overview-4c6e50ef89cc2b114a085df37b5f72e8b1876da7.tar.zst Overview-4c6e50ef89cc2b114a085df37b5f72e8b1876da7.zip |
Enabled customizing of the number of commits to be fetched
-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' |