|
Packit |
ae9e2a |
/*
|
|
Packit |
ae9e2a |
* Copyright (C) the libgit2 contributors. All rights reserved.
|
|
Packit |
ae9e2a |
*
|
|
Packit |
ae9e2a |
* This file is part of libgit2, distributed under the GNU GPL v2 with
|
|
Packit |
ae9e2a |
* a Linking Exception. For full terms see the included COPYING file.
|
|
Packit |
ae9e2a |
*/
|
|
Packit |
ae9e2a |
#ifndef INCLUDE_blob_h__
|
|
Packit |
ae9e2a |
#define INCLUDE_blob_h__
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
#include "git2/blob.h"
|
|
Packit |
ae9e2a |
#include "repository.h"
|
|
Packit |
ae9e2a |
#include "odb.h"
|
|
Packit |
ae9e2a |
#include "fileops.h"
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
struct git_blob {
|
|
Packit |
ae9e2a |
git_object object;
|
|
Packit |
ae9e2a |
git_odb_object *odb_object;
|
|
Packit |
ae9e2a |
};
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
void git_blob__free(void *blob);
|
|
Packit |
ae9e2a |
int git_blob__parse(void *blob, git_odb_object *obj);
|
|
Packit |
ae9e2a |
int git_blob__getbuf(git_buf *buffer, git_blob *blob);
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
extern int git_blob__create_from_paths(
|
|
Packit |
ae9e2a |
git_oid *out_oid,
|
|
Packit |
ae9e2a |
struct stat *out_st,
|
|
Packit |
ae9e2a |
git_repository *repo,
|
|
Packit |
ae9e2a |
const char *full_path,
|
|
Packit |
ae9e2a |
const char *hint_path,
|
|
Packit |
ae9e2a |
mode_t hint_mode,
|
|
Packit |
ae9e2a |
bool apply_filters);
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
#endif
|