aboutsummaryrefslogtreecommitdiffstats
path: root/ui-tag.c
diff options
context:
space:
mode:
authorChristian Hesse2020-10-20 23:32:45 +0200
committerChristian Hesse2020-10-20 23:57:12 +0200
commit779631c6dc23c15bbbf45a7c7ab9fffb619037b7 (patch)
tree99ddcae06134e97ef490fb1a4c9f6ab095ca5052 /ui-tag.c
parent629659d2cffbf059374fc53e6400ff0bebe1ddde (diff)
downloadcgit-779631c6dc23c15bbbf45a7c7ab9fffb619037b7.tar.gz
cgit-779631c6dc23c15bbbf45a7c7ab9fffb619037b7.tar.bz2
cgit-779631c6dc23c15bbbf45a7c7ab9fffb619037b7.zip
global: replace references to 'sha1' with 'oid'
For some time now sha1 is considered broken and upstream is working to replace it with sha256. Replace all references to 'sha1' with 'oid', just as upstream does. Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'ui-tag.c')
-rw-r--r--ui-tag.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui-tag.c b/ui-tag.c
index 846d5b1..424bbcc 100644
--- a/ui-tag.c
+++ b/ui-tag.c
@@ -33,7 +33,7 @@ static void print_tag_content(char *buf)
33 33
34static void print_download_links(char *revname) 34static void print_download_links(char *revname)
35{ 35{
36 html("<tr><th>download</th><td class='sha1'>"); 36 html("<tr><th>download</th><td class='oid'>");
37 cgit_print_snapshot_links(ctx.repo, revname, "<br/>"); 37 cgit_print_snapshot_links(ctx.repo, revname, "<br/>");
38 html("</td></tr>"); 38 html("</td></tr>");
39} 39}
@@ -91,7 +91,7 @@ void cgit_print_tag(char *revname)
91 cgit_close_filter(ctx.repo->email_filter); 91 cgit_close_filter(ctx.repo->email_filter);
92 html("</td></tr>\n"); 92 html("</td></tr>\n");
93 } 93 }
94 html("<tr><td>tagged object</td><td class='sha1'>"); 94 html("<tr><td>tagged object</td><td class='oid'>");
95 cgit_object_link(tag->tagged); 95 cgit_object_link(tag->tagged);
96 html("</td></tr>\n"); 96 html("</td></tr>\n");
97 if (ctx.repo->snapshots) 97 if (ctx.repo->snapshots)
@@ -106,7 +106,7 @@ void cgit_print_tag(char *revname)
106 html("<tr><td>tag name</td><td>"); 106 html("<tr><td>tag name</td><td>");
107 html_txt(revname); 107 html_txt(revname);
108 html("</td></tr>\n"); 108 html("</td></tr>\n");
109 html("<tr><td>tagged object</td><td class='sha1'>"); 109 html("<tr><td>tagged object</td><td class='oid'>");
110 cgit_object_link(obj); 110 cgit_object_link(obj);
111 html("</td></tr>\n"); 111 html("</td></tr>\n");
112 if (ctx.repo->snapshots) 112 if (ctx.repo->snapshots)