]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-blame.c
ui-blame: Distinguish hashes column from lines column
[ps-cgit] / ui-blame.c
index 62cf4315da77b1a3c429d9c333af72b09ce5a4a9..62647a8e2e4918bb107001576df240ab7af12774 100644 (file)
@@ -51,7 +51,7 @@ static void emit_blame_entry(struct blame_scoreboard *sb,
 
        char *detail = emit_suspect_detail(suspect);
 
-       html("<tr><td class='sha1 lines'>");
+       html("<tr><td class='sha1 hashes'>");
        cgit_commit_link(find_unique_abbrev(oid->hash, DEFAULT_ABBREV), detail,
                         NULL, ctx.qry.head, oid_to_hex(oid), suspect->path);
        html("</td>\n");
@@ -101,7 +101,7 @@ static void print_object(const unsigned char *sha1, const char *path,
        argv_array_push(&rev_argv, "blame");
        argv_array_push(&rev_argv, rev);
        init_revisions(&revs, NULL);
-       DIFF_OPT_SET(&revs.diffopt, ALLOW_TEXTCONV);
+       revs.diffopt.flags.allow_textconv = 1;
        setup_revisions(rev_argv.argc, rev_argv.argv, &revs, NULL);
        init_scoreboard(&sb);
        sb.revs = &revs;