diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2020-08-19 17:27:55 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-08-20 00:08:03 +0300 |
commit | e39620f07e092f36642ab97c6ced47be5b609d58 (patch) | |
tree | 84b5a0bb7f28e8ad355f93acf1e8ded6341a54db /refs/refs-internal.h | |
parent | 878e727637ec5815ccb3301eb994a54df95b21b8 (diff) |
refs: split off reading loose ref data in separate function
This prepares for handling FETCH_HEAD (which is not a regular ref)
separately from the ref backend.
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/refs-internal.h')
-rw-r--r-- | refs/refs-internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/refs/refs-internal.h b/refs/refs-internal.h index 357359a0be..24d79fb5c1 100644 --- a/refs/refs-internal.h +++ b/refs/refs-internal.h @@ -675,6 +675,12 @@ struct ref_store { }; /* + * Parse contents of a loose ref file. + */ +int parse_loose_ref_contents(const char *buf, struct object_id *oid, + struct strbuf *referent, unsigned int *type); + +/* * Fill in the generic part of refs and add it to our collection of * reference stores. */ |