From 61c3ca978c586c673aec618cb94210657278dda8 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Tue, 8 May 2007 22:40:59 +0200 Subject: Update to libgit 1.5.2-rc2 Signed-off-by: Lars Hjemli --- ui-diff.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ui-diff.c') diff --git a/ui-diff.c b/ui-diff.c index b6486f1..0ad9faf 100644 --- a/ui-diff.c +++ b/ui-diff.c @@ -7,7 +7,6 @@ */ #include "cgit.h" -#include "xdiff.h" char *diff_buffer; int diff_buffer_size; @@ -82,13 +81,13 @@ int diff_cb(void *priv_, mmbuffer_t *mb, int nbuf) static int load_mmfile(mmfile_t *file, const unsigned char *sha1) { - char type[20]; + enum object_type type; if (is_null_sha1(sha1)) { file->ptr = (char *)""; file->size = 0; } else { - file->ptr = read_sha1_file(sha1, type, &file->size); + file->ptr = read_sha1_file(sha1, &type, &file->size); } return 1; } -- cgit 1.4.1 le>
summary refs log tree commit diff
Commit message (Expand)Author
2021-01-31Add The Rosewater RedemptionJune McEnroe
2021-01-29Use int when checking for EOFJune McEnroe
2021-01-28Move gpl.c and agpl.c templates out of etcJune McEnroe
2021-01-27Set para and sect for mdocJune McEnroe
2021-01-26Use First state to match keyword at beginning of lineJune McEnroe
2021-01-25Install vi on Linux and nvi on macOSJune McEnroe
2021-01-25Use vi and lessJune McEnroe
2021-01-20Use mtags for sh in source-filterJune McEnroe
2021-01-20Generate tags for sh files in mtagsJune McEnroe
2021-01-20Add messy sh lexerJune McEnroe
2021-01-20Add all target to git.causal.agency MakefileJune McEnroe
2021-01-20Remove Lua supportJune McEnroe
2021-01-20Fix tests for diff spansJune McEnroe
2021-01-20Avoid matching ':' in make tagsJune McEnroe
2021-01-19Prefer tag matches not preceded by [[:alnum:]]June McEnroe
2021-01-19Escape \ and / in mtags search patternsJune McEnroe
2021-01-20Use mtags in source-filterJune McEnroe
2021-01-19Add mtags to generate tags for make and mdocJune McEnroe
2021-01-19Map tags to IDs using only [[:alnum:]-._]June McEnroe
2021-01-19Don't use a pager if reading standard inputJune McEnroe
2021-01-19Support BSD make syntax and match *.amJune McEnroe
2021-01-19Match tab following escaped newline in make assignmentsJune McEnroe
2021-01-18Allow matching lexers using first input lineJune McEnroe