]> git.ipfire.org Git - thirdparty/git.git/commit - packfile.h
packfile: drop nth_packed_object_sha1()
authorJeff King <peff@peff.net>
Mon, 24 Feb 2020 04:37:54 +0000 (23:37 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Feb 2020 20:55:53 +0000 (12:55 -0800)
commit2fecc48cade44529dff2594eadfb294643cdc24d
tree7ec3b9182be4b385a49e897839f0d23715a44ab9
parent6ac9760a30683a24e80a7aefe30e383046e810f0
packfile: drop nth_packed_object_sha1()

Once upon a time, nth_packed_object_sha1() was the primary way to get
the oid of a packfile's index position. But these days we have the more
type-safe nth_packed_object_id() wrapper, and all callers have been
converted.

Let's drop the "sha1" version (turning the safer wrapper into a single
function) so that nobody is tempted to introduce new callers.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
packfile.c
packfile.h