regression: do not show unset or empty tags
1 files changed, 1 insertions(+), 1 deletions(-) | |||
---|---|---|---|
M | stagit.c | +1 | -1 |
1@@ -797,7 +797,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci, const char *tag)
2 }
3 if (ci->summary) {
4 fputs("<title type=\"text\">", fp);
5- if (tag) {
6+ if (tag && tag[0]) {
7 fputs("[", fp);
8 xmlencode(fp, tag, strlen(tag));
9 fputs("] ", fp);