{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1745907317,
"reponame":"cgit",
"desc":"CGI gitweb",
"owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://warmcat.com/repo/cgit",
"f":3,
"items": [
{"schema":"libjg2-1",
"cid":"ac249ce3b2f87d410157dc203e314331",
"commit": {"type":"commit",
"time": 1530115879,
"time_ofs": 120,
"oid_tree": { "oid": "4de939687f7417ca4e2940386310c8c458c60eb8", "alias": []},
"oid":{ "oid": "e491eaa5df3055dc419d9d3cb75421e8a8c43944", "alias": []},
"msg": "ui-shared: pass separator in to cgit_print_snapshot_links()",
"sig_commit": { "git_time": { "time": 1530115879, "offset": 120 }, "name": "Jason A. Donenfeld", "email": "Jason@zx2c4.com", "md5": "689e78dac56e3d77d7f74984912487d3" },
"sig_author": { "git_time": { "time": 1522505339, "offset": 60 }, "name": "John Keeping", "email": "john@keeping.me.uk", "md5": "aea7d8738c91da1cb0dfa9d86f2bbc47" }},
"body": "ui-shared: pass separator in to cgit_print_snapshot_links()\n\ncgit_print_snapshot_links() is almost identical to\nprint_tag_downloads(), so let's extract the difference to a parameter in\npreparation for removing print_tag_downloads() in the next commit.\n\nSigned-off-by: John Keeping \u003cjohn@keeping.me.uk\u003e\nReviewed-by: Christian Hesse \u003cmail@eworm.de\u003e\n"
,
"diff": "diff --git a/ui-commit.c b/ui-commit.c\nindex 37c7d8d..65b4603 100644\n--- a/ui-commit.c\n+++ b/ui-commit.c\n@@ -110,7 +110,7 @@ void cgit_print_commit(char *hex, const char *prefix)\n \t}\n \tif (ctx.repo-\u003esnapshots) {\n \t\thtml(\u0022\u003ctr\u003e\u003cth\u003edownload\u003c/th\u003e\u003ctd colspan\u003d'2' class\u003d'sha1'\u003e\u0022);\n-\t\tcgit_print_snapshot_links(ctx.repo, hex);\n+\t\tcgit_print_snapshot_links(ctx.repo, hex, \u0022\u003cbr/\u003e\u0022);\n \t\thtml(\u0022\u003c/td\u003e\u003c/tr\u003e\u0022);\n \t}\n \thtml(\u0022\u003c/table\u003e\u005cn\u0022);\ndiff --git a/ui-shared.c b/ui-shared.c\nindex 50a168d..9d7ee3d 100644\n--- a/ui-shared.c\n+++ b/ui-shared.c\n@@ -1111,7 +1111,8 @@ void cgit_compose_snapshot_prefix(struct strbuf *filename, const char *base,\n \tstrbuf_addf(filename, \u0022%s-%s\u0022, base, ref);\n }\n \n-void cgit_print_snapshot_links(const struct cgit_repo *repo, const char *ref)\n+void cgit_print_snapshot_links(const struct cgit_repo *repo, const char *ref,\n+\t\t\t const char *separator)\n {\n \tconst struct cgit_snapshot_format* f;\n \tstruct strbuf filename \u003d STRBUF_INIT;\n@@ -1132,7 +1133,7 @@ void cgit_print_snapshot_links(const struct cgit_repo *repo, const char *ref)\n \t\tstrbuf_addstr(\u0026filename, f-\u003esuffix);\n \t\tcgit_snapshot_link(filename.buf, NULL, NULL, NULL, NULL,\n \t\t\t\t filename.buf);\n-\t\thtml(\u0022\u003cbr/\u003e\u0022);\n+\t\thtml(separator);\n \t}\n \tstrbuf_release(\u0026filename);\n }\ndiff --git a/ui-shared.h b/ui-shared.h\nindex d44d7c6..4d5978b 100644\n--- a/ui-shared.h\n+++ b/ui-shared.h\n@@ -77,7 +77,7 @@ extern void cgit_print_filemode(unsigned short mode);\n extern void cgit_compose_snapshot_prefix(struct strbuf *filename,\n \t\t\t\t\t const char *base, const char *ref);\n extern void cgit_print_snapshot_links(const struct cgit_repo *repo,\n-\t\t\t\t const char *ref);\n+\t\t\t\t const char *ref, const char *separator);\n extern const char *cgit_snapshot_prefix(const struct cgit_repo *repo);\n extern void cgit_add_hidden_formfields(int incl_head, int incl_search,\n \t\t\t\t const char *page);\ndiff --git a/ui-tag.c b/ui-tag.c\nindex f597dfa..2c96c37 100644\n--- a/ui-tag.c\n+++ b/ui-tag.c\n@@ -34,7 +34,7 @@ static void print_tag_content(char *buf)\n static void print_download_links(char *revname)\n {\n \thtml(\u0022\u003ctr\u003e\u003cth\u003edownload\u003c/th\u003e\u003ctd class\u003d'sha1'\u003e\u0022);\n-\tcgit_print_snapshot_links(ctx.repo, revname);\n+\tcgit_print_snapshot_links(ctx.repo, revname, \u0022\u003cbr/\u003e\u0022);\n \thtml(\u0022\u003c/td\u003e\u003c/tr\u003e\u0022);\n }\n \n","s":{"c":1745907317,"u": 1205}}
],"g": 1812,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}