summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-07-02 17:19:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-07-02 18:22:57 (GMT)
commitf01cc14c3c70cfd820114505d2ddc153c28f6f89 (patch)
tree0a30640d834ff7005ab5e4745e76cc19eebdbf10 /cache.h
parenta1b475eeb40dc29246d4ce7465474479639769d0 (diff)
downloadgit-f01cc14c3c70cfd820114505d2ddc153c28f6f89.zip
git-f01cc14c3c70cfd820114505d2ddc153c28f6f89.tar.gz
git-f01cc14c3c70cfd820114505d2ddc153c28f6f89.tar.bz2
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.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/cache.h b/cache.h
index 10afd71..9ee470c 100644
--- a/cache.h
+++ b/cache.h
@@ -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