@@ -32,12 +32,16 @@ pub(crate) struct Cache {
32
32
/// If true, multi-pack indices, whether present or not, may be used by the object database.
33
33
pub use_multi_pack_index : bool ,
34
34
/// If true, we are on a case-insensitive file system.
35
+ #[ cfg_attr( not( feature = "git-index" ) , allow( dead_code) ) ]
35
36
pub ignore_case : bool ,
36
37
/// The path to the user-level excludes file to ignore certain files in the worktree.
38
+ #[ cfg_attr( not( feature = "git-index" ) , allow( dead_code) ) ]
37
39
pub excludes_file : Option < std:: path:: PathBuf > ,
38
40
/// Define how we can use values obtained with `xdg_config(…)` and its `XDG_CONFIG_HOME` variable.
41
+ #[ cfg_attr( not( feature = "git-index" ) , allow( dead_code) ) ]
39
42
xdg_config_home_env : EnvVarResourcePermission ,
40
43
/// Define how we can use values obtained with `xdg_config(…)`. and its `HOME` variable.
44
+ #[ cfg_attr( not( feature = "git-index" ) , allow( dead_code) ) ]
41
45
home_env : EnvVarResourcePermission ,
42
46
// TODO: make core.precomposeUnicode available as well.
43
47
}
@@ -135,6 +139,7 @@ mod cache {
135
139
}
136
140
137
141
/// Return a path by using the `$XDF_CONFIG_HOME` or `$HOME/.config/…` environment variables locations.
142
+ #[ cfg_attr( not( feature = "git-index" ) , allow( dead_code) ) ]
138
143
pub fn xdg_config_path (
139
144
& self ,
140
145
resource_file_name : & str ,
0 commit comments