author | Junio C Hamano <gitster@pobox.com> | |
Sat, 28 Feb 2009 07:43:37 +0000 (23:43 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 28 Feb 2009 09:06:06 +0000 (01:06 -0800) | ||
commit | 386cb77210cdb09cd808698d21d0e796cd77f26f | |
tree | 0a8460ca2365d52c864cec23cb17a2ffb31ba577 | tree | snapshot |
parent | b8431b033f9e60f87a75b864612873307a3e5966 | commit | diff |
Consolidate ignore_packed logic more
This refactors three loops that check if a given packfile is on the
ignore_packed list into a function is_kept_pack(). The function returns
false for a pack on the list, and true for a pack not on the list, because
this list is solely used by "git repack" to pass list of packfiles that do
not have corresponding .keep files, i.e. a packfile not on the list is
"kept".
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This refactors three loops that check if a given packfile is on the
ignore_packed list into a function is_kept_pack(). The function returns
false for a pack on the list, and true for a pack not on the list, because
this list is solely used by "git repack" to pass list of packfiles that do
not have corresponding .keep files, i.e. a packfile not on the list is
"kept".
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-pack-objects.c | diff | blob | history | |
cache.h | diff | blob | history | |
revision.h | diff | blob | history | |
sha1_file.c | diff | blob | history |