]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-refs.c
ui-log: add support for showing the full commit message
[ps-cgit] / ui-refs.c
index 44c8f9ae48f534b6472798540a964570771f7ebd..7eb16d58c1097f2f2e3c5cfb625d7814caea34cb 100644 (file)
--- a/ui-refs.c
+++ b/ui-refs.c
@@ -58,7 +58,8 @@ static int print_branch(struct refinfo *ref)
        if (!info)
                return 1;
        html("<tr><td>");
        if (!info)
                return 1;
        html("<tr><td>");
-       cgit_log_link(name, NULL, NULL, name, NULL, NULL, 0, NULL, NULL);
+       cgit_log_link(name, NULL, NULL, name, NULL, NULL, 0, NULL, NULL,
+                     ctx.qry.showmsg);
        html("</td><td>");
 
        if (ref->object->type == OBJ_COMMIT) {
        html("</td><td>");
 
        if (ref->object->type == OBJ_COMMIT) {
@@ -88,7 +89,7 @@ static int print_tag(struct refinfo *ref)
 {
        struct tag *tag;
        struct taginfo *info;
 {
        struct tag *tag;
        struct taginfo *info;
-       char *url, *name = (char *)ref->refname;
+       char *name = (char *)ref->refname;
 
        if (ref->object->type == OBJ_TAG) {
                tag = (struct tag *)ref->object;
 
        if (ref->object->type == OBJ_TAG) {
                tag = (struct tag *)ref->object;
@@ -96,11 +97,7 @@ static int print_tag(struct refinfo *ref)
                if (!tag || !info)
                        return 1;
                html("<tr><td>");
                if (!tag || !info)
                        return 1;
                html("<tr><td>");
-               url = cgit_pageurl(ctx.qry.repo, "tag",
-                                  fmt("id=%s", name));
-               html_link_open(url, NULL, NULL);
-               html_txt(name);
-               html_link_close();
+               cgit_tag_link(name, NULL, NULL, ctx.qry.head, name);
                html("</td><td>");
                cgit_object_link(tag->tagged);
                html("</td><td>");
                html("</td><td>");
                cgit_object_link(tag->tagged);
                html("</td><td>");