sha1_file: convert check_sha1_signature to struct object_id
[gitweb.git] / split-index.h
index 53b778fa616c1c23a940616fd27341ac1e8f43b6..43d66826eb712b9a9b6872458527266bd9818146 100644 (file)
@@ -12,6 +12,8 @@ struct split_index {
        struct ewah_bitmap *replace_bitmap;
        struct cache_entry **saved_cache;
        unsigned int saved_cache_nr;
+       unsigned int nr_deletions;
+       unsigned int nr_replacements;
        int refcount;
 };
 
@@ -19,7 +21,7 @@ struct split_index *init_split_index(struct index_state *istate);
 void save_or_free_index_entry(struct index_state *istate, struct cache_entry *ce);
 void replace_index_entry_in_base(struct index_state *istate,
                                 struct cache_entry *old,
-                                struct cache_entry *new);
+                                struct cache_entry *new_entry);
 int read_link_extension(struct index_state *istate,
                        const void *data, unsigned long sz);
 int write_link_extension(struct strbuf *sb,
@@ -29,5 +31,7 @@ void merge_base_index(struct index_state *istate);
 void prepare_to_write_split_index(struct index_state *istate);
 void finish_writing_split_index(struct index_state *istate);
 void discard_split_index(struct index_state *istate);
+void add_split_index(struct index_state *istate);
+void remove_split_index(struct index_state *istate);
 
 #endif