MCPcopy Index your code
hub / github.com/git/git / tweak_untracked_cache

Function tweak_untracked_cache

read-cache.c:1908–1930  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1906}
1907
1908static 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
1932static void tweak_split_index(struct index_state *istate)
1933{

Callers 1

post_read_index_fromFunction · 0.85

Calls 3

prepare_repo_settingsFunction · 0.85
remove_untracked_cacheFunction · 0.85
add_untracked_cacheFunction · 0.85

Tested by

no test coverage detected