mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 19:37:29 +00:00

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>
18 lines
300 B
C
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__ */
|