{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1745907024,
"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":"bd19c473c964f54d9212cba449782093",
"commit": {"type":"commit",
"time": 1530115879,
"time_ofs": 120,
"oid_tree": { "oid": "12c3a446f63c1e8ed756ffc8a76b4e4daa4f5d6b", "alias": []},
"oid":{ "oid": "71d14d9c98c39a6683780060f84429a3a7e5b348", "alias": []},
"msg": "ui-refs: use shared function to print tag downloads",
"sig_commit": { "git_time": { "time": 1530115879, "offset": 120 }, "name": "Jason A. Donenfeld", "email": "Jason@zx2c4.com", "md5": "689e78dac56e3d77d7f74984912487d3" },
"sig_author": { "git_time": { "time": 1522505465, "offset": 60 }, "name": "John Keeping", "email": "john@keeping.me.uk", "md5": "aea7d8738c91da1cb0dfa9d86f2bbc47" }},
"body": "ui-refs: use shared function to print tag downloads\n\ncgit_compose_snapshot_prefix() is identical to print_tag_downloads(), so\nremove the latter and use the function from ui-shared.c instead.\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-refs.c b/ui-refs.c\nindex 7b95e8b..2ec3858 100644\n--- a/ui-refs.c\n+++ b/ui-refs.c\n@@ -90,31 +90,6 @@ static void print_tag_header(void)\n \t \u0022\u003cth class\u003d'left' colspan\u003d'2'\u003eAge\u003c/th\u003e\u003c/tr\u003e\u005cn\u0022);\n }\n \n-static void print_tag_downloads(const struct cgit_repo *repo, const char *ref)\n-{\n-\tconst struct cgit_snapshot_format* f;\n-\tconst char *basename;\n-\tstruct strbuf filename \u003d STRBUF_INIT;\n-\tsize_t prefixlen;\n-\n-\tbasename \u003d cgit_snapshot_prefix(repo);\n-\tif (starts_with(ref, basename))\n-\t\tstrbuf_addstr(\u0026filename, ref);\n-\telse\n-\t\tcgit_compose_snapshot_prefix(\u0026filename, basename, ref);\n-\tprefixlen \u003d filename.len;\n-\tfor (f \u003d cgit_snapshot_formats; f-\u003esuffix; f++) {\n-\t\tif (!(repo-\u003esnapshots \u0026 f-\u003ebit))\n-\t\t\tcontinue;\n-\t\tstrbuf_setlen(\u0026filename, prefixlen);\n-\t\tstrbuf_addstr(\u0026filename, f-\u003esuffix);\n-\t\tcgit_snapshot_link(filename.buf, NULL, NULL, NULL, NULL, filename.buf);\n-\t\thtml(\u0022\u0026nbsp;\u0026nbsp;\u0022);\n-\t}\n-\n-\tstrbuf_release(\u0026filename);\n-}\n-\n static int print_tag(struct refinfo *ref)\n {\n \tstruct tag *tag \u003d NULL;\n@@ -134,7 +109,7 @@ static int print_tag(struct refinfo *ref)\n \tcgit_tag_link(name, NULL, NULL, name);\n \thtml(\u0022\u003c/td\u003e\u003ctd\u003e\u0022);\n \tif (ctx.repo-\u003esnapshots \u0026\u0026 (obj-\u003etype \u003d\u003d OBJ_COMMIT))\n-\t\tprint_tag_downloads(ctx.repo, name);\n+\t\tcgit_print_snapshot_links(ctx.repo, name, \u0022\u0026nbsp;\u0026nbsp;\u0022);\n \telse\n \t\tcgit_object_link(obj);\n \thtml(\u0022\u003c/td\u003e\u003ctd\u003e\u0022);\n","s":{"c":1745907024,"u": 1487}}
],"g": 2605,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}