libgit2/src/common.h
Ramsay Jones 75d5843055 Add a file reading routine along with an io buffer type
In particular, the gitfo_read_file() routine can be used to slurp
the complete file contents into an gitfo_buf structure. The buffer
content will be allocated by malloc() and may be released by the
gitfo_free_buf() routine. The io buffer type can be initialised
on the stack with the GITFO_BUF_INIT macro.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2008-12-19 07:21:20 -08:00

18 lines
300 B
C

#ifndef INCLUDE_common_h__
#define INCLUDE_common_h__
#include "cc-compat.h"
#include "util.h"
#include "errors.h"
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "git/common.h"
#define GIT_PATH_MAX 4096
#endif /* INCLUDE_common_h__ */