git-query
git data extraction tool using c and libgit2
git clone https://9o.is/git/git-query.git
commit 9684d6b4af9ee68ae5c3b210c86850a7ee565e88 parent 6bfbd3e3ead23969ac85be5f3cf91a9e8a8e16e1 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Mon, 10 Apr 2023 12:33:35 +0200 in Atom (RFC4287) an atomTextConstruct specifies the type text as the default This saves a few bytes. Diffstat:
| M | stagit.c | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/stagit.c b/stagit.c @@ -860,7 +860,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci, const char *tag) fputs("</updated>\n", fp); } if (ci->summary) { - fputs("<title type=\"text\">", fp); + fputs("<title>", fp); if (tag && tag[0]) { fputs("[", fp); xmlencode(fp, tag, strlen(tag)); @@ -880,7 +880,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci, const char *tag) fputs("</email>\n</author>\n", fp); } - fputs("<content type=\"text\">", fp); + fputs("<content>", fp); fprintf(fp, "commit %s\n", ci->oid); if (ci->parentoid[0]) fprintf(fp, "parent %s\n", ci->parentoid);