diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-07-02 10:19:35 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-07-02 11:22:57 -0700 |
commit | f01cc14c3c70cfd820114505d2ddc153c28f6f89 (patch) | |
tree | 0a30640d834ff7005ab5e4745e76cc19eebdbf10 /cache.h | |
parent | a1b475eeb40dc29246d4ce7465474479639769d0 (diff) | |
download | git-f01cc14c3c70cfd820114505d2ddc153c28f6f89.tar.gz |
sha1_name.c: hide get_sha1_with_context_1() ugliness
There is no outside caller that cares about the "only-to-die" ugliness.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -817,11 +817,7 @@ static inline int get_sha1_with_mode(const char *str, unsigned char *sha1, unsig { return get_sha1_with_mode_1(str, sha1, mode, 0, NULL); } -extern int get_sha1_with_context_1(const char *name, unsigned char *sha1, struct object_context *orc, int only_to_die, const char *prefix); -static inline int get_sha1_with_context(const char *str, unsigned char *sha1, struct object_context *orc) -{ - return get_sha1_with_context_1(str, sha1, orc, 0, NULL); -} +extern int get_sha1_with_context(const char *str, unsigned char *sha1, struct object_context *orc); /* * Try to read a SHA1 in hexadecimal format from the 40 characters |