read-cache API & users: make discard_index() return void
The discard_index() function has not returned non-zero since
7a51ed66f6
(Make on-disk index representation separate from in-core
one, 2008-01-14), but we've had various code in-tree still acting as
though that might be the case.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
fbc1ed629e
commit
9c5f3ee3b3
2
cache.h
2
cache.h
@ -774,7 +774,7 @@ void ensure_full_index(struct index_state *istate);
|
||||
*/
|
||||
int write_locked_index(struct index_state *, struct lock_file *lock, unsigned flags);
|
||||
|
||||
int discard_index(struct index_state *);
|
||||
void discard_index(struct index_state *);
|
||||
void move_index_extensions(struct index_state *dst, struct index_state *src);
|
||||
int unmerged_index(const struct index_state *);
|
||||
|
||||
|
Reference in New Issue
Block a user