summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-11-19 13:07:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-11-21 03:06:15 (GMT)
commit9c5f3ee3b3a04182cc22630e9eb9fad95bd57fd7 (patch)
treec31a4d9625a82b1ede09040d520fb5ef1a6f37c1 /cache.h
parentfbc1ed629e3c71b47a04ab86b88497984bc6acbb (diff)
downloadgit-9c5f3ee3b3a04182cc22630e9eb9fad95bd57fd7.zip
git-9c5f3ee3b3a04182cc22630e9eb9fad95bd57fd7.tar.gz
git-9c5f3ee3b3a04182cc22630e9eb9fad95bd57fd7.tar.bz2
read-cache API & users: make discard_index() return void
The discard_index() function has not returned non-zero since 7a51ed66f65 (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>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index 53dc434..489e9e1 100644
--- a/cache.h
+++ b/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 *);