author | Junio C Hamano <gitster@pobox.com> | |
Sat, 28 Feb 2009 07:30:38 +0000 (23:30 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 28 Feb 2009 09:06:06 +0000 (01:06 -0800) | ||
commit | b8431b033f9e60f87a75b864612873307a3e5966 | |
tree | b1f82e88e689757092e4a8b721ce2d49cb058cc6 | tree | snapshot |
parent | cd673c1f17228d272c4b7f81fbb28bc31cf0cac6 | commit | diff |
has_sha1_kept_pack(): take "struct rev_info"
Its "ignore_packed" parameter always comes from struct rev_info. This
patch makes the function take a pointer to the surrounding structure, so
that the refactoring in the next patch becomes easier to review.
There is an unfortunate header file dependency and the easiest workaround
is to temporarily move the function declaration from cache.h to
revision.h; this will be moved back to cache.h once the function loses
this "ignore_packed" parameter altogether in the later part of the
series.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Its "ignore_packed" parameter always comes from struct rev_info. This
patch makes the function take a pointer to the surrounding structure, so
that the refactoring in the next patch becomes easier to review.
There is an unfortunate header file dependency and the easiest workaround
is to temporarily move the function declaration from cache.h to
revision.h; this will be moved back to cache.h once the function loses
this "ignore_packed" parameter altogether in the later part of the
series.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h | diff | blob | history | |
revision.c | diff | blob | history | |
revision.h | diff | blob | history | |
sha1_file.c | diff | blob | history |