diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-08-31 15:49:48 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-08-31 15:49:48 -0700 |
commit | e699684cf6bdfd4d6fd9086a6935168f86a0177e (patch) | |
tree | 1cea1c4b68f829b39d6bf281aac992a7e1e227f7 /refs.h | |
parent | Merge branch 'jk/index-pack-w-more-threads' (diff) | |
parent | sequencer: treat REVERT_HEAD as a pseudo ref (diff) | |
download | tgif-e699684cf6bdfd4d6fd9086a6935168f86a0177e.tar.xz |
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.h')
-rw-r--r-- | refs.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -105,6 +105,8 @@ int refs_verify_refname_available(struct ref_store *refs, const struct string_list *skip, struct strbuf *err); +int refs_ref_exists(struct ref_store *refs, const char *refname); + int ref_exists(const char *refname); int should_autocreate_reflog(const char *refname); |