diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-09-01 00:49:48 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-01 00:49:48 +0200 |
commit | e699684cf6bdfd4d6fd9086a6935168f86a0177e (patch) | |
tree | 1cea1c4b68f829b39d6bf281aac992a7e1e227f7 /refs.c | |
parent | Merge branch 'jk/index-pack-w-more-threads' (diff) | |
parent | sequencer: treat REVERT_HEAD as a pseudo ref (diff) | |
download | git-e699684cf6bdfd4d6fd9086a6935168f86a0177e.tar.xz git-e699684cf6bdfd4d6fd9086a6935168f86a0177e.zip |
Merge branch 'hn/refs-pseudorefs'
Accesses to two pseudorefs have been updated to properly use ref
API.
* hn/refs-pseudorefs:
sequencer: treat REVERT_HEAD as a pseudo ref
builtin/commit: suggest update-ref for pseudoref removal
sequencer: treat CHERRY_PICK_HEAD as a pseudo ref
refs: make refs_ref_exists public
Diffstat (limited to 'refs.c')
-rw-r--r-- | refs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -313,7 +313,7 @@ int read_ref(const char *refname, struct object_id *oid) return read_ref_full(refname, RESOLVE_REF_READING, oid, NULL); } -static int refs_ref_exists(struct ref_store *refs, const char *refname) +int refs_ref_exists(struct ref_store *refs, const char *refname) { return !!refs_resolve_ref_unsafe(refs, refname, RESOLVE_REF_READING, NULL, NULL); } |