Staging
v0.5.1
https://github.com/git/git
Revision bf949ade81106fbda068c1fdb2c6fd1cb1babe7e authored by Junio C Hamano on 16 May 2021, 12:04:46 UTC, committed by Junio C Hamano on 16 May 2021, 12:05:24 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent e004fd6
Raw File
Tip revision: bf949ade81106fbda068c1fdb2c6fd1cb1babe7e authored by Junio C Hamano on 16 May 2021, 12:04:46 UTC
Git 2.32-rc0
Tip revision: bf949ad
sparse-index.h
#ifndef SPARSE_INDEX_H__
#define SPARSE_INDEX_H__

struct index_state;
int convert_to_sparse(struct index_state *istate);

/*
 * Some places in the codebase expect to search for a specific path.
 * This path might be outside of the sparse-checkout definition, in
 * which case a sparse-index may not contain a path for that index.
 *
 * Given an index and a path, check to see if a leading directory for
 * 'path' exists in the index as a sparse directory. In that case,
 * expand that sparse directory to a full range of cache entries and
 * populate the index accordingly.
 */
void expand_to_path(struct index_state *istate,
		    const char *path, size_t pathlen, int icase);

struct repository;
int set_sparse_index_config(struct repository *repo, int enable);

#endif
back to top