aboutsummaryrefslogtreecommitdiff
path: root/ui-blame.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'ui-blame.c')
-rw-r--r--ui-blame.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/ui-blame.c b/ui-blame.c
index 5c6f36e..e0f0593 100644
--- a/ui-blame.c
+++ b/ui-blame.c
@@ -6,8 +6,6 @@
* (see COPYING for full license text)
*/
-#define USE_THE_REPOSITORY_VARIABLE
-
#include "cgit.h"
#include "ui-blame.h"
#include "html.h"
@@ -121,14 +119,14 @@ static void print_object(const struct object_id *oid, const char *path,
struct blame_origin *o;
struct blame_entry *ent = NULL;
- type = odb_read_object_info(the_repository->objects, oid, &size);
+ type = oid_object_info(the_repository, oid, &size);
if (type == OBJ_BAD) {
cgit_print_error_page(404, "Not found", "Bad object name: %s",
oid_to_hex(oid));
return;
}
- buf = odb_read_object(the_repository->objects, oid, &type, &size);
+ buf = repo_read_object_file(the_repository, oid, &type, &size);
if (!buf) {
cgit_print_error_page(500, "Internal server error",
"Error reading object %s", oid_to_hex(oid));
@@ -263,7 +261,7 @@ static int walk_tree(const struct object_id *oid, struct strbuf *base,
static int basedir_len(const char *path)
{
- const char *p = strrchr(path, '/');
+ char *p = strrchr(path, '/');
if (p)
return p - path + 1;
return 0;