aboutsummaryrefslogtreecommitdiffstats
path: root/ui-diff.c
diff options
context:
space:
mode:
authorGravatar Lars Hjemli <hjemli@gmail.com>2008-04-25 06:40:51 (JST)
committerGravatar Lars Hjemli <hjemli@gmail.com>2008-04-25 06:41:39 (JST)
commitd188ed4f2905e6d10abd26c45572a0d48eb53969 (patch)
tree4ae96ddebd908091ca88a339e58040cf38049bb1 /ui-diff.c
parentfe1230dece81450004d02fa8a470f8dab8f7fdd9 (diff)
downloadcgit-d188ed4f2905e6d10abd26c45572a0d48eb53969.zip
cgit-d188ed4f2905e6d10abd26c45572a0d48eb53969.tar.gz
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 'ui-diff.c')
-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
258 cgit_print_error(fmt("Bad object name: %s", new_rev)); 258 cgit_print_error(fmt("Bad object name: %s", new_rev));
259 return; 259 return;
260 } 260 }
261 if (type != OBJ_COMMIT) {
262 cgit_print_error(fmt("Unhandled object type: %s",
263 typename(type)));
264 return;
265 }
266
267 commit = lookup_commit_reference(new_rev_sha1); 261 commit = lookup_commit_reference(new_rev_sha1);
268 if (!commit || parse_commit(commit)) 262 if (!commit || parse_commit(commit))
269 cgit_print_error(fmt("Bad commit: %s", sha1_to_hex(new_rev_sha1))); 263 cgit_print_error(fmt("Bad commit: %s", sha1_to_hex(new_rev_sha1)));