Revision 7e4a2a848377241b8fb4f624d1151bbf2f8d5814 authored by Junio C Hamano on 26 December 2005, 20:34:56 UTC, committed by Junio C Hamano on 27 December 2005, 01:23:59 UTC
Avoid asking for zero bytes when that change simplifies overall logic. Later we would change the wrapper to ask for 1 byte on platforms that return NULL for zero byte request. Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 7d6fb37
blob.h
#ifndef BLOB_H
#define BLOB_H
#include "object.h"
extern const char *blob_type;
struct blob {
struct object object;
};
struct blob *lookup_blob(const unsigned char *sha1);
int parse_blob_buffer(struct blob *item, void *buffer, unsigned long size);
int parse_blob(struct blob *item);
#endif /* BLOB_H */
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...