diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2017-10-16 00:06:57 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-16 04:05:51 +0200 |
commit | cca5fa6406046c19ab5a8117fe71bf4402c00d88 (patch) | |
tree | b7305cc09752a86366cb4695cd504adec207e022 /refs.h | |
parent | refs: convert read_ref and read_ref_full to object_id (diff) | |
download | git-cca5fa6406046c19ab5a8117fe71bf4402c00d88.tar.xz git-cca5fa6406046c19ab5a8117fe71bf4402c00d88.zip |
refs: convert dwim_ref and expand_ref to struct object_id
All of the callers of these functions just pass the hash member of a
struct object_id, so convert them to use a pointer to struct object_id
directly. Insert a check for NULL in expand_ref on a temporary basis;
this check can be removed when resolve_ref_unsafe is converted as well.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
-rw-r--r-- | refs.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -139,8 +139,8 @@ int resolve_gitlink_ref(const char *submodule, const char *refname, */ int refname_match(const char *abbrev_name, const char *full_name); -int expand_ref(const char *str, int len, unsigned char *sha1, char **ref); -int dwim_ref(const char *str, int len, unsigned char *sha1, char **ref); +int expand_ref(const char *str, int len, struct object_id *oid, char **ref); +int dwim_ref(const char *str, int len, struct object_id *oid, char **ref); int dwim_log(const char *str, int len, unsigned char *sha1, char **ref); /* |