]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-log.c
Change S/L/T to summary/log/tree
[ps-cgit] / ui-log.c
index 8d774b05669f36a820c892e24c21c71275ba4deb..95cb453c958611521cb54378933ecb6892905d52 100644 (file)
--- a/ui-log.c
+++ b/ui-log.c
@@ -59,6 +59,9 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path, i
        int argc = 2;
        int i;
 
+       if (!tip)
+               argv[1] = cgit_query_head;
+
        if (grep)
                argv[argc++] = fmt("--grep=%s", grep);
        if (path) {