diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-02-11 16:55:58 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-11 16:55:58 -0800 |
commit | 03bdcfcc78f476d58449c9635e95916b7b71f3dd (patch) | |
tree | 882cd230084f9259e1143fbf0cb6e26ebe7e0b95 /refs.h | |
parent | Merge branch 'gh/doc-typos' (diff) | |
parent | refs API: remove "failure_errno" from refs_resolve_ref_unsafe() (diff) | |
download | tgif-03bdcfcc78f476d58449c9635e95916b7b71f3dd.tar.xz |
Merge branch 'ab/no-errno-from-resolve-ref-unsafe'
Remaining code-clean-up.
* ab/no-errno-from-resolve-ref-unsafe:
refs API: remove "failure_errno" from refs_resolve_ref_unsafe()
sequencer: don't use die_errno() on refs_resolve_ref_unsafe() failure
Diffstat (limited to 'refs.h')
-rw-r--r-- | refs.h | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -58,11 +58,6 @@ struct worktree; * resolved. The function returns NULL for such ref names. * Caps and underscores refers to the special refs, such as HEAD, * FETCH_HEAD and friends, that all live outside of the refs/ directory. - * - * Callers should not inspect "errno" on failure, but rather pass in a - * "failure_errno" parameter, on failure the "errno" will indicate the - * type of failure encountered, but not necessarily one that came from - * a syscall. We might have faked it up. */ #define RESOLVE_REF_READING 0x01 #define RESOLVE_REF_NO_RECURSE 0x02 @@ -72,7 +67,7 @@ const char *refs_resolve_ref_unsafe(struct ref_store *refs, const char *refname, int resolve_flags, struct object_id *oid, - int *flags, int *failure_errno); + int *flags); const char *resolve_ref_unsafe(const char *refname, int resolve_flags, struct object_id *oid, int *flags); |