summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-12-12 14:29:11 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2022-03-23 08:39:19 -0400
commit36df49c26d93f4d5cc14db48a40316b29945bcd4 (patch)
tree04dd4deb19640801cd8275313e5510c47e482189 /include/git2
parentc7b189baeab2d215ead5f299a0d188191b476dd3 (diff)
downloadlibgit2-36df49c26d93f4d5cc14db48a40316b29945bcd4.tar.gz
sha: GIT_ERROR_SHA1 is deprecated in favor of GIT_ERROR_SHA
The more generic GIT_ERROR_SHA allows for SHA256 errors as well as SHA1.
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/deprecated.h2
-rw-r--r--include/git2/errors.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/git2/deprecated.h b/include/git2/deprecated.h
index f73d7da61..c32abeeb7 100644
--- a/include/git2/deprecated.h
+++ b/include/git2/deprecated.h
@@ -436,6 +436,8 @@ GIT_EXTERN(int) git_diff_format_email_options_init(
#define GITERR_WORKTREE GIT_ERROR_WORKTREE
#define GITERR_SHA1 GIT_ERROR_SHA1
+#define GIT_ERROR_SHA1 GIT_ERROR_SHA
+
/**
* Return the last `git_error` object that was generated for the
* current thread. This is an alias of `git_error_last` and is
diff --git a/include/git2/errors.h b/include/git2/errors.h
index 62f363507..aba6d75e3 100644
--- a/include/git2/errors.h
+++ b/include/git2/errors.h
@@ -106,7 +106,7 @@ typedef enum {
GIT_ERROR_FILESYSTEM,
GIT_ERROR_PATCH,
GIT_ERROR_WORKTREE,
- GIT_ERROR_SHA1,
+ GIT_ERROR_SHA,
GIT_ERROR_HTTP,
GIT_ERROR_INTERNAL
} git_error_t;