mirror of
https://git.zx2c4.com/cgit
synced 2025-07-21 19:34:22 +02:00
Update to libgit 1.5.2-rc2
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
66cacd053b
commit
61c3ca978c
9 changed files with 50 additions and 837 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue