--- a/templates/common.xsl Fri Oct 04 19:40:53 2019 +0200
+++ b/templates/common.xsl Sat Oct 05 21:04:37 2019 +0200
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Sane Software Manifesto helper tools
+ Sane software manifesto helper tools
Copyright © 2019 František Kučera (Frantovo.cz, GlobalCode.info)
This program is free software: you can redistribute it and/or modify
@@ -27,13 +27,18 @@
<xsl:param name="tag"/>
<xsl:param name="distance"/>
<xsl:param name="hash"/>
+ <xsl:param name="changedFiles"/>
<xsl:value-of select="$tag"/>
- <xsl:if test="$distance > 1">
+ <xsl:if test="$distance > 1 or $changedFiles > 0">
<xsl:text>+</xsl:text>
<xsl:value-of select="$distance - 1"/>
<xsl:text> (</xsl:text>
<xsl:value-of select="$hash"/>
+ <xsl:if test="$changedFiles > 0">
+ <xsl:text>+</xsl:text>
+ <xsl:value-of select="$changedFiles"/>
+ </xsl:if>
<xsl:text>)</xsl:text>
</xsl:if>
</xsl:template>