Website Summary Files Commits Branches @commit @diff @stats
path: root / ui-blame.c
diff options
context:
space:
mode:
Commit779631c6dc23c15bbbf45a7c7ab9fffb619037b7 (patch)
Author
 Christian Hesse <mail@eworm.de>
2020-10-20 23:32:45 +0200
Committer
 Christian Hesse <mail@eworm.de>
2020-10-20 23:57:12 +0200
Files99ddcae06134e97ef490fb1a4c9f6ab095ca5052 /ui-blame.c
cgit-779631c6dc23c15bbbf45a7c7ab9fffb619037b7.tar
cgit-779631c6dc23c15bbbf45a7c7ab9fffb619037b7.tar.gz
cgit-779631c6dc23c15bbbf45a7c7ab9fffb619037b7.zip
Parent629659d2cffbf059374fc53e6400ff0bebe1ddde (diff)
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>
1 files changed, 2 insertions, 2 deletions
-rw-r--r--ui-blame.c4
diff --git a/ui-blame.c b/ui-blame.c
index c3662bb..cfab7fb 100644
--- a/ui-blame.c
+++ b/ui-blame.c
@@ -48,7 +48,7 @@ static void emit_blame_entry_hash(struct blame_entry *ent)
unsigned long line = 0;
char *detail = emit_suspect_detail(suspect);
- html("<span class='sha1'>");
+ html("<span class='oid'>");
cgit_commit_link(find_unique_abbrev(oid, DEFAULT_ABBREV), detail,
NULL, ctx.qry.head, oid_to_hex(oid), suspect->path);
html("</span>");
@@ -256,7 +256,7 @@ static int basedir_len(const char *path)
void cgit_print_blame(void)
{
- const char *rev = ctx.qry.sha1;
+ const char *rev = ctx.qry.oid;
struct object_id oid;
struct commit *commit;
struct pathspec_item path_items = {