| 1906 | } |
| 1907 | |
| 1908 | static void tweak_untracked_cache(struct index_state *istate) |
| 1909 | { |
| 1910 | struct repository *r = the_repository; |
| 1911 | |
| 1912 | prepare_repo_settings(r); |
| 1913 | |
| 1914 | switch (r->settings.core_untracked_cache) { |
| 1915 | case UNTRACKED_CACHE_REMOVE: |
| 1916 | remove_untracked_cache(istate); |
| 1917 | break; |
| 1918 | case UNTRACKED_CACHE_WRITE: |
| 1919 | add_untracked_cache(istate); |
| 1920 | break; |
| 1921 | case UNTRACKED_CACHE_KEEP: |
| 1922 | /* |
| 1923 | * Either an explicit "core.untrackedCache=keep", the |
| 1924 | * default if "core.untrackedCache" isn't configured, |
| 1925 | * or a fallback on an unknown "core.untrackedCache" |
| 1926 | * value. |
| 1927 | */ |
| 1928 | break; |
| 1929 | } |
| 1930 | } |
| 1931 | |
| 1932 | static void tweak_split_index(struct index_state *istate) |
| 1933 | { |
no test coverage detected