]>
git.proxmox.com Git - libgit2.git/blob - src/blob.h
e5770991eb730b2b62101fd89617db2e24b0deb2
2 * Copyright (C) the libgit2 contributors. All rights reserved.
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
7 #ifndef INCLUDE_blob_h__
8 #define INCLUDE_blob_h__
12 #include "git2/blob.h"
13 #include "repository.h"
24 git_object_size_t size
;
30 #define GIT_ERROR_CHECK_BLOBSIZE(n) \
32 if (!git__is_sizet(n)) { \
33 git_error_set(GIT_ERROR_NOMEMORY, "blob contents too large to fit in memory"); \
38 void git_blob__free(void *blob
);
39 int git_blob__parse(void *blob
, git_odb_object
*obj
);
40 int git_blob__parse_raw(void *blob
, const char *data
, size_t size
);
41 int git_blob__getbuf(git_buf
*buffer
, git_blob
*blob
);
43 extern int git_blob__create_from_paths(
47 const char *full_path
,
48 const char *hint_path
,