diff options
author | Nicolas Pitre <nico@cam.org> | 2008-08-22 21:45:53 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-23 07:00:22 +0200 |
commit | 4b480c6716a7d8e20e7e510827ea81e7939f335a (patch) | |
tree | 24c1de905aecbdebfd1c71485de456d0d6660c31 /pack-revindex.h | |
parent | compat/snprintf.c: handle snprintf's that always return the # chars transmitted (diff) | |
download | git-4b480c6716a7d8e20e7e510827ea81e7939f335a.tar.xz git-4b480c6716a7d8e20e7e510827ea81e7939f335a.zip |
discard revindex data when pack list changes
This is needed to fix verify-pack -v with multiple pack arguments.
Also, in theory, revindex data (if any) must be discarded whenever
reprepare_packed_git() is called. In practice this is hard to trigger
though.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-revindex.h')
-rw-r--r-- | pack-revindex.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pack-revindex.h b/pack-revindex.h index 36a514a6cf..8d5027ad91 100644 --- a/pack-revindex.h +++ b/pack-revindex.h @@ -7,5 +7,6 @@ struct revindex_entry { }; struct revindex_entry *find_pack_revindex(struct packed_git *p, off_t ofs); +void discard_revindex(void); #endif |