2018-01-12 00:25:08 +03:00
|
|
|
#ifndef VIRTUALFILESYSTEM_H
|
|
|
|
#define VIRTUALFILESYSTEM_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Update the CE_SKIP_WORKTREE bits based on the virtual file system.
|
|
|
|
*/
|
|
|
|
void apply_virtualfilesystem(struct index_state *istate);
|
|
|
|
|
2021-02-06 05:28:33 +03:00
|
|
|
/*
|
|
|
|
* Clear the specified flags for all entries in the virtual file system
|
|
|
|
* that match the specified select mask. Returns the number of entries
|
|
|
|
* processed.
|
|
|
|
*/
|
|
|
|
int clear_ce_flags_virtualfilesystem(struct index_state *istate, int select_mask, int clear_mask);
|
|
|
|
|
2018-01-12 00:25:08 +03:00
|
|
|
/*
|
|
|
|
* Return 1 if the requested item is found in the virtual file system,
|
|
|
|
* 0 for not found and -1 for undecided.
|
|
|
|
*/
|
|
|
|
int is_included_in_virtualfilesystem(const char *pathname, int pathlen);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Return 1 for exclude, 0 for include and -1 for undecided.
|
|
|
|
*/
|
|
|
|
int is_excluded_from_virtualfilesystem(const char *pathname, int pathlen, int dtype);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Free the virtual file system data structures.
|
|
|
|
*/
|
|
|
|
void free_virtualfilesystem(void);
|
|
|
|
|
|
|
|
#endif
|