From d188ed4f2905e6d10abd26c45572a0d48eb53969 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Thu, 24 Apr 2008 23:40:51 +0200 Subject: ui-diff: remove test on object type By removing the test for commit objects it's now possible to specify a tag name for the id query-string parameter (it already worked for id2). Signed-off-by: Lars Hjemli --- ui-diff.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ui-diff.c b/ui-diff.c index 625b5fd..12e78b1 100644 --- a/ui-diff.c +++ b/ui-diff.c @@ -258,12 +258,6 @@ void cgit_print_diff(const char *new_rev, const char *old_rev, const char *prefi cgit_print_error(fmt("Bad object name: %s", new_rev)); return; } - if (type != OBJ_COMMIT) { - cgit_print_error(fmt("Unhandled object type: %s", - typename(type))); - return; - } - commit = lookup_commit_reference(new_rev_sha1); if (!commit || parse_commit(commit)) cgit_print_error(fmt("Bad commit: %s", sha1_to_hex(new_rev_sha1))); -- cgit 1.4.1 fs/?id=2f76383e32404c29b42345de5f7e2dc939f5e2ae'>refs log tree commit diff
Commit message (Expand)Author
2021-01-12Use hilex for bin HTMLJune McEnroe
2021-01-12Don't output a pre in hilex by defaultJune McEnroe
2021-01-12Move hilex out of hilex directoryJune McEnroe
2021-01-12Consolidate hilex formatters into hilex.cJune McEnroe
2021-01-12Remove hacky tagging from hilexJune McEnroe
2021-01-12Add htagml -iJune McEnroe
2021-01-12Render tag index in HTMLJune McEnroe
2021-01-12Add htagml -xJune McEnroe
2021-01-12Prevent matching the same tag twiceJune McEnroe
2021-01-12Process htagml file line by lineJune McEnroe
2021-01-12Split fields by tab onlyJune McEnroe
2021-01-12List both Makefile and html.sh under README.7June McEnroe
2021-01-12Add htagml exampleJune McEnroe
2021-01-12Use mandoc and htagml for bin htmlJune McEnroe
2021-01-12Add htagmlJune McEnroe
2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe
2021-01-11Publish "Using vi"June McEnroe
2021-01-11Enable diff.colorMovedJune McEnroe
2021-01-10Set less search case-insensitiveJune McEnroe
2021-01-10Set EXINITJune McEnroe
2021-01-09Add c -t flag to print expression typeJune McEnroe
2021-01-05Update taglineJune McEnroe