summaryrefslogtreecommitdiff
path: root/sha1_name.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-07-02 19:56:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-07-03 17:24:11 (GMT)
commit249c8f4a164c8502f8274c505a48b9c686f458d0 (patch)
treede813b93fbe7e3533a4df6431d7185c33f877b55 /sha1_name.c
parent8c135ea260a84ef71899c8bd23bb39425288f9fe (diff)
downloadgit-249c8f4a164c8502f8274c505a48b9c686f458d0.zip
git-249c8f4a164c8502f8274c505a48b9c686f458d0.tar.gz
git-249c8f4a164c8502f8274c505a48b9c686f458d0.tar.bz2
sha1_name.c: get rid of get_sha1_with_mode()
There are only two callers, and they will benefit from being able to pass disambiguation hints to underlying get_sha1_with_context() API once it happens. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_name.c')
-rw-r--r--sha1_name.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sha1_name.c b/sha1_name.c
index df583c2..e63459b 100644
--- a/sha1_name.c
+++ b/sha1_name.c
@@ -1139,14 +1139,6 @@ void maybe_die_on_misspelt_object_name(const char *name, const char *prefix)
get_sha1_with_context_1(name, sha1, &oc, 1, prefix);
}
-int get_sha1_with_mode(const char *str, unsigned char *sha1, unsigned *mode)
-{
- struct object_context oc;
- int ret = get_sha1_with_context_1(str, sha1, &oc, 0, NULL);
- *mode = oc.mode;
- return ret;
-}
-
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);