From 779631c6dc23c15bbbf45a7c7ab9fffb619037b7 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 20 Oct 2020 23:32:45 +0200 Subject: 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 --- ui-log.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui-log.c') diff --git a/ui-log.c b/ui-log.c index fd07409..6914f75 100644 --- a/ui-log.c +++ b/ui-log.c @@ -463,7 +463,7 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern if (pager) { html(" ("); cgit_log_link(ctx.qry.showmsg ? "Collapse" : "Expand", NULL, - NULL, ctx.qry.head, ctx.qry.sha1, + NULL, ctx.qry.head, ctx.qry.oid, ctx.qry.vpath, ctx.qry.ofs, ctx.qry.grep, ctx.qry.search, ctx.qry.showmsg ? 0 : 1, ctx.qry.follow); @@ -519,7 +519,7 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern if (ofs > 0) { html("
  • "); cgit_log_link("[prev]", NULL, NULL, ctx.qry.head, - ctx.qry.sha1, ctx.qry.vpath, + ctx.qry.oid, ctx.qry.vpath, ofs - cnt, ctx.qry.grep, ctx.qry.search, ctx.qry.showmsg, ctx.qry.follow); @@ -528,7 +528,7 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern if ((commit = get_revision(&rev)) != NULL) { html("
  • "); cgit_log_link("[next]", NULL, NULL, ctx.qry.head, - ctx.qry.sha1, ctx.qry.vpath, + ctx.qry.oid, ctx.qry.vpath, ofs + cnt, ctx.qry.grep, ctx.qry.search, ctx.qry.showmsg, ctx.qry.follow); -- cgit 1.4.1 input type='submit' value='search'/>
    Commit message (Expand)Author
    2018-02-05Add flip option to gfxxJune McEnroe
    2018-02-05Remove gfxx reverse optionJune McEnroe
    2018-02-04Fix gfxx draw stop conditionJune McEnroe
    2018-02-04Reuse CGColorSpace and CGDataProvider in gfcocoaJune McEnroe
    2018-02-04Mark mac target phonyJune McEnroe
    2018-02-04Set up Makefile for gfxx-cocoa or gfxx-fbJune McEnroe
    2018-02-04Avoid doing excessive work in gfxxJune McEnroe
    2018-02-04Handle window resizing in gfcocoaJune McEnroe
    2018-02-04Set cinoptionsJune McEnroe
    2018-02-04Tweak colorscheme moreJune McEnroe
    2018-02-04Color MatchParen DarkYellowJune McEnroe
    2018-02-04Add palette sampling to gfxxJune McEnroe
    2018-02-04Add 4-bit RGB to gfxxJune McEnroe
    2018-02-04Add Quit menu item to gfcocoaJune McEnroe
    2018-02-04Switch back to sane Objective-C styleJune McEnroe
    2018-02-04Quit gfcocoa when window closesJune McEnroe
    2018-02-03Apparently this is how people write Objective-CJune McEnroe