summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2022-02-11 16:55:58 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-02-11 16:55:58 -0800
commit03bdcfcc78f476d58449c9635e95916b7b71f3dd (patch)
tree882cd230084f9259e1143fbf0cb6e26ebe7e0b95 /refs.h
parentMerge branch 'gh/doc-typos' (diff)
parentrefs API: remove "failure_errno" from refs_resolve_ref_unsafe() (diff)
downloadtgif-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.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/refs.h b/refs.h
index 8f91a7f9ff..cd2d0c1ac0 100644
--- a/refs.h
+++ b/refs.h
@@ -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);