]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/name-rev.c
Abstract out accesses to object hash array
authorLinus Torvalds <torvalds@osdl.org>
Fri, 30 Jun 2006 04:38:55 +0000 (21:38 -0700)
committerJunio C Hamano <junkio@cox.net>
Fri, 30 Jun 2006 06:48:31 +0000 (23:48 -0700)
commitfc046a75d539a78e6b2c16534c4078617a69a327
tree03842bdfab234301a0a0c693f30c087a58eeb51f
parent8dbbd14ea3ae1b4e825f1e7d314afddf26c67298
Abstract out accesses to object hash array

There are a few special places where some programs accessed the object
hash array directly, which bothered me because I wanted to play with some
simple re-organizations.

So this patch makes the object hash array data structures all entirely
local to object.c, and the few users who wanted to look at it now get to
use a function to query how many object index entries there can be, and to
actually access the array.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
fsck-objects.c
name-rev.c
object.c
object.h