diff options
author | Stefan Beller <sbeller@google.com> | 2017-01-24 15:56:50 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-01-26 11:00:58 -0800 |
commit | 5f29433f1ca1efc35d546a056200d923e86e3fca (patch) | |
tree | b58a0f1092c359d2744a2cc415b02adb40f2eafc /cache.h | |
parent | 40d96325143ae04cb3f645ac96f6413d1f641b9b (diff) | |
download | git-5f29433f1ca1efc35d546a056200d923e86e3fca.tar.gz git-5f29433f1ca1efc35d546a056200d923e86e3fca.tar.xz |
cache.h: expose the dying procedure for reading gitlinks
In a later patch we want to react to only a subset of errors, defaulting
the rest to die as usual. Separate the block that takes care of dying
into its own function so we have easy access to it.
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -507,6 +507,7 @@ extern int is_nonbare_repository_dir(struct strbuf *path); #define READ_GITFILE_ERR_NO_PATH 6 #define READ_GITFILE_ERR_NOT_A_REPO 7 #define READ_GITFILE_ERR_TOO_LARGE 8 +extern void read_gitfile_error_die(int error_code, const char *path, const char *dir); extern const char *read_gitfile_gently(const char *path, int *return_error_code); #define read_gitfile(path) read_gitfile_gently((path), NULL) extern const char *resolve_gitdir_gently(const char *suspect, int *return_error_code); |