Code

has_sha1_pack(): refactor "pretend these packs do not exist" interface
authorJunio C Hamano <gitster@pobox.com>
Sat, 28 Feb 2009 07:15:53 +0000 (23:15 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 28 Feb 2009 09:06:06 +0000 (01:06 -0800)
commitcd673c1f17228d272c4b7f81fbb28bc31cf0cac6
tree5e5537843e6b38f62a3b4f15437e4a3bf8ee89ab
parent2478dc84b5fb2617bfab3a8f65f1270de578b94a
has_sha1_pack(): refactor "pretend these packs do not exist" interface

Most of the callers of this function except only one pass NULL to its last
parameter, ignore_packed.

Introduce has_sha1_kept_pack() function that has the function signature
and the semantics of this function, and convert the sole caller that does
not pass NULL to call this new function.

All other callers and has_sha1_pack() lose the ignore_packed parameter.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-count-objects.c
builtin-fsck.c
builtin-prune-packed.c
cache.h
diff.c
revision.c
sha1_file.c