mirror of
https://github.com/git/git.git
synced 2024-12-03 23:14:23 +08:00
eea0e59ffb
Each of these were checked with gcc -E -I. ${SOURCE_FILE} | grep ${HEADER_FILE} to ensure that removing the direct inclusion of the header actually resulted in that header no longer being included at all (i.e. that no other header pulled it in transitively). ...except for a few cases where we verified that although the header was brought in transitively, nothing from it was directly used in that source file. These cases were: * builtin/credential-cache.c * builtin/pull.c * builtin/send-pack.c Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
19 lines
403 B
C
19 lines
403 B
C
#include "git-compat-util.h"
|
|
#include "blob.h"
|
|
#include "alloc.h"
|
|
|
|
const char *blob_type = "blob";
|
|
|
|
struct blob *lookup_blob(struct repository *r, const struct object_id *oid)
|
|
{
|
|
struct object *obj = lookup_object(r, oid);
|
|
if (!obj)
|
|
return create_object(r, oid, alloc_blob_node(r));
|
|
return object_as_type(obj, OBJ_BLOB, 0);
|
|
}
|
|
|
|
void parse_blob_buffer(struct blob *item)
|
|
{
|
|
item->object.parsed = 1;
|
|
}
|