From 004a339874ef697c781cd4cbe2437c0d95daef8a Mon Sep 17 00:00:00 2001 From: Dhruva Krishnamurthy Date: Mon, 28 Jan 2019 18:31:21 -0800 Subject: Allow bypassing check '.keep' files using libgit2 option 'GIT_OPT_IGNORE_PACK_KEEP_FILE_CHECK' --- include/git2/common.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/git2/common.h b/include/git2/common.h index 70c02a48c..c7ecef4cc 100644 --- a/include/git2/common.h +++ b/include/git2/common.h @@ -205,7 +205,8 @@ typedef enum { GIT_OPT_SET_ALLOCATOR, GIT_OPT_ENABLE_UNSAVED_INDEX_SAFETY, GIT_OPT_GET_PACK_MAX_OBJECTS, - GIT_OPT_SET_PACK_MAX_OBJECTS + GIT_OPT_SET_PACK_MAX_OBJECTS, + GIT_OPT_DISABLE_PACK_KEEP_FILE_CHECKS } git_libgit2_opt_t; /** @@ -395,6 +396,10 @@ typedef enum { * > Set the maximum number of objects libgit2 will allow in a pack * > file when downloading a pack file from a remote. * + * opts(GIT_OPT_DISABLE_PACK_KEEP_FILE_CHECKS, int enabled) + * > This will cause .keep file existence checks to be skipped when + * > accessing packfiles, which can help performance with remote filesystems. + * * @param option Option key * @param ... value to set the option * @return 0 on success, <0 on failure -- cgit v1.2.1