summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorJohannes Sixt <johannes.sixt@telecom.at>2007-11-15 16:33:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-11-16 05:16:51 (GMT)
commit549799b4a1741fe765fff2c91808b4524ea2d7fb (patch)
treee393fb3116a80348fc6f56d30d151d2f4166e5dc /refs.c
parent039bc64e886716593d59910694a6c8ed5b72c515 (diff)
downloadgit-549799b4a1741fe765fff2c91808b4524ea2d7fb.zip
git-549799b4a1741fe765fff2c91808b4524ea2d7fb.tar.gz
git-549799b4a1741fe765fff2c91808b4524ea2d7fb.tar.bz2
refs.c: Remove unused get_ref_sha1()
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/refs.c b/refs.c
index aff02cd..ae53254 100644
--- a/refs.c
+++ b/refs.c
@@ -580,18 +580,6 @@ int for_each_remote_ref(each_ref_fn fn, void *cb_data)
return do_for_each_ref("refs/remotes/", fn, 13, cb_data);
}
-/* NEEDSWORK: This is only used by ssh-upload and it should go; the
- * caller should do resolve_ref or read_ref like everybody else. Or
- * maybe everybody else should use get_ref_sha1() instead of doing
- * read_ref().
- */
-int get_ref_sha1(const char *ref, unsigned char *sha1)
-{
- if (check_ref_format(ref))
- return -1;
- return read_ref(mkpath("refs/%s", ref), sha1);
-}
-
/*
* Make sure "ref" is something reasonable to have under ".git/refs/";
* We do not like it if: