#define USE_THE_REPOSITORY_VARIABLE
#include "git-compat-util.h"
#include "convert.h"
#include "environment.h"
#include "streaming.h"
#include "repository.h"
#include "object-file.h"
#include "object-store-ll.h"
#include "replace-object.h"
#include "packfile.h"
open_istream_fn;
close_istream_fn;
read_istream_fn;
#define FILTER_BUFFER …
struct filtered_istream { … };
struct git_istream { … };
static void close_deflated_stream(struct git_istream *st)
{ … }
static int close_istream_filtered(struct git_istream *st)
{ … }
static ssize_t read_istream_filtered(struct git_istream *st, char *buf,
size_t sz)
{ … }
static struct git_istream *attach_stream_filter(struct git_istream *st,
struct stream_filter *filter)
{ … }
static ssize_t read_istream_loose(struct git_istream *st, char *buf, size_t sz)
{ … }
static int close_istream_loose(struct git_istream *st)
{ … }
static int open_istream_loose(struct git_istream *st, struct repository *r,
const struct object_id *oid,
enum object_type *type)
{ … }
static ssize_t read_istream_pack_non_delta(struct git_istream *st, char *buf,
size_t sz)
{ … }
static int close_istream_pack_non_delta(struct git_istream *st)
{ … }
static int open_istream_pack_non_delta(struct git_istream *st,
struct repository *r UNUSED,
const struct object_id *oid UNUSED,
enum object_type *type UNUSED)
{ … }
static int close_istream_incore(struct git_istream *st)
{ … }
static ssize_t read_istream_incore(struct git_istream *st, char *buf, size_t sz)
{ … }
static int open_istream_incore(struct git_istream *st, struct repository *r,
const struct object_id *oid, enum object_type *type)
{ … }
static int istream_source(struct git_istream *st,
struct repository *r,
const struct object_id *oid,
enum object_type *type)
{ … }
int close_istream(struct git_istream *st)
{ … }
ssize_t read_istream(struct git_istream *st, void *buf, size_t sz)
{ … }
struct git_istream *open_istream(struct repository *r,
const struct object_id *oid,
enum object_type *type,
unsigned long *size,
struct stream_filter *filter)
{ … }
int stream_blob_to_fd(int fd, const struct object_id *oid, struct stream_filter *filter,
int can_seek)
{ … }