summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorDhruva Krishnamurthy <dhruvakm@gmail.com>2019-01-28 18:31:21 -0800
committerDhruva Krishnamurthy <dhruvakm@gmail.com>2019-02-02 07:56:03 -0800
commit004a339874ef697c781cd4cbe2437c0d95daef8a (patch)
tree8b8fbc6a381e559143502895351f8c2b5b458617 /include/git2
parent1a107fac0fc88a4d74b64ffc9ae2fd178ba631c0 (diff)
downloadlibgit2-004a339874ef697c781cd4cbe2437c0d95daef8a.tar.gz
Allow bypassing check '.keep' files using libgit2 option 'GIT_OPT_IGNORE_PACK_KEEP_FILE_CHECK'
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/common.h7
1 files changed, 6 insertions, 1 deletions
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