git-query

git data extraction tool using c and libgit2

git clone https://9o.is/git/git-query.git

commit e67202a36419058361eeac7c4b185f4b60097b68
parent 10a6b63821298c8a2e5c41a8f463df114b5d90b3
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon, 20 Jul 2020 14:15:12 +0200

regression: do not show unset or empty tags

Diffstat:
Mstagit.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stagit.c b/stagit.c @@ -797,7 +797,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci, const char *tag) } if (ci->summary) { fputs("<title type=\"text\">", fp); - if (tag) { + if (tag && tag[0]) { fputs("[", fp); xmlencode(fp, tag, strlen(tag)); fputs("] ", fp);