about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2008-04-24 23:40:51 +0200
committerLars Hjemli <hjemli@gmail.com>2008-04-24 23:41:39 +0200
commitd188ed4f2905e6d10abd26c45572a0d48eb53969 (patch)
tree4ae96ddebd908091ca88a339e58040cf38049bb1
parentIntegrate diffstat with diff (diff)
downloadcgit-pink-d188ed4f2905e6d10abd26c45572a0d48eb53969.tar.gz
cgit-pink-d188ed4f2905e6d10abd26c45572a0d48eb53969.zip
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 <hjemli@gmail.com>
Diffstat (limited to '')
-rw-r--r--ui-diff.c6
1 files changed, 0 insertions, 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)));
/td>Reference png.h in bin.7June McEnroe 2019-07-27Revert "Use scheme to style HTMLs"June McEnroe 2019-07-27Remove scheme text linkJune McEnroe 2019-07-26Update Dark.terminalJune McEnroe 2019-07-26Lighten dark whiteJune McEnroe 2019-07-25Add png.3 man pageJune McEnroe 2019-07-25Use scheme to style HTMLsJune McEnroe 2019-07-25Don't match comments in strings in makeJune McEnroe 2019-07-25Generate index.html with links from bin.7June McEnroe 2019-07-24Warn when date has changedJune McEnroe 2019-07-24Add whenJune McEnroe 2019-07-24Remove histedit from bitJune McEnroe