]> git.proxmox.com Git - libgit2.git/blobdiff - include/git2/common.h
New upstream version 1.3.0+dfsg.1
[libgit2.git] / include / git2 / common.h
index 8dd30d506b4bfe0b98c66800061cabdbb580d267..2ee82902529d2373570ecce199f72c21767ba4e3 100644 (file)
@@ -91,10 +91,10 @@ GIT_BEGIN_DECL
 
 /**
  * The separator used in path list strings (ie like in the PATH
- * environment variable). A semi-colon ";" is used on Windows, and
- * a colon ":" for all other systems.
+ * environment variable). A semi-colon ";" is used on Windows and
+ * AmigaOS, and a colon ":" for all other systems.
  */
-#ifdef GIT_WIN32
+#if defined(GIT_WIN32) || defined(AMIGA)
 #define GIT_PATH_LIST_SEPARATOR ';'
 #else
 #define GIT_PATH_LIST_SEPARATOR ':'
@@ -207,7 +207,11 @@ typedef enum {
        GIT_OPT_DISABLE_PACK_KEEP_FILE_CHECKS,
        GIT_OPT_ENABLE_HTTP_EXPECT_CONTINUE,
        GIT_OPT_GET_MWINDOW_FILE_LIMIT,
-       GIT_OPT_SET_MWINDOW_FILE_LIMIT
+       GIT_OPT_SET_MWINDOW_FILE_LIMIT,
+       GIT_OPT_SET_ODB_PACKED_PRIORITY,
+       GIT_OPT_SET_ODB_LOOSE_PRIORITY,
+       GIT_OPT_GET_EXTENSIONS,
+       GIT_OPT_SET_EXTENSIONS
 } git_libgit2_opt_t;
 
 /**
@@ -356,6 +360,11 @@ typedef enum {
  *             >
  *             > - `ciphers` is the list of ciphers that are eanbled.
  *
+ *     * opts(GIT_OPT_GET_USER_AGENT, git_buf *out)
+ *
+ *             > Get the value of the User-Agent header.
+ *             > The User-Agent is written to the `out` buffer.
+ *
  *     * opts(GIT_OPT_ENABLE_OFS_DELTA, int enabled)
  *
  *             > Enable or disable the use of "offset deltas" when creating packfiles,
@@ -416,6 +425,30 @@ typedef enum {
  *             > authentication, use expect/continue when POSTing data.
  *             > This option is not available on Windows.
  *
+ *   opts(GIT_OPT_SET_ODB_PACKED_PRIORITY, int priority)
+ *      > Override the default priority of the packed ODB backend which
+ *      > is added when default backends are assigned to a repository
+ *
+ *   opts(GIT_OPT_SET_ODB_LOOSE_PRIORITY, int priority)
+ *      > Override the default priority of the loose ODB backend which
+ *      > is added when default backends are assigned to a repository
+ *
+ *   opts(GIT_OPT_GET_EXTENSIONS, git_strarray *out)
+ *      > Returns the list of git extensions that are supported.  This
+ *      > is the list of built-in extensions supported by libgit2 and
+ *      > custom extensions that have been added with
+ *      > `GIT_OPT_SET_EXTENSIONS`.  Extensions that have been negated
+ *      > will not be returned.  The returned list should be released
+ *      > with `git_strarray_dispose`.
+ *
+ *   opts(GIT_OPT_SET_EXTENSIONS, const char **extensions, size_t len)
+ *      > Set that the given git extensions are supported by the caller.
+ *      > Extensions supported by libgit2 may be negated by prefixing
+ *      > them with a `!`.  For example: setting extensions to
+ *      > { "!noop", "newext" } indicates that the caller does not want
+ *      > to support repositories with the `noop` extension but does want
+ *      > to support repositories with the `newext` extension.
+ *
  * @param option Option key
  * @param ... value to set the option
  * @return 0 on success, <0 on failure