summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2017-04-01 10:44:17 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2017-04-01 10:47:30 +0100
commitcc8d9a29e7cb24a43a10ec86a789efcf12394974 (patch)
tree81578e5447e8c1c13b79e5b886db67b1fba40df0 /include/git2
parentdcaa90991f0d14ba62c3749b47f6768bf7cdcfa6 (diff)
downloadlibgit2-cc8d9a29e7cb24a43a10ec86a789efcf12394974.tar.gz
win32: introduce `do_with_retries` macro
Provide a macro that will allow us to run a function with posix-like return values multiple times in a retry loop, with an optional cleanup function called between invocations.
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/errors.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/git2/errors.h b/include/git2/errors.h
index 3b746b758..71bff0f9d 100644
--- a/include/git2/errors.h
+++ b/include/git2/errors.h
@@ -53,6 +53,7 @@ typedef enum {
GIT_PASSTHROUGH = -30, /**< Internal only */
GIT_ITEROVER = -31, /**< Signals end of iteration with iterator */
+ GIT_RETRY = -32, /**< Internal only */
} git_error_code;
/**