MCPcopy Create free account
hub / github.com/git/git / clear_ce_flags

Function clear_ce_flags

unpack-trees.c:1765–1794  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1763}
1764
1765static int clear_ce_flags(struct index_state *istate,
1766 int select_mask, int clear_mask,
1767 struct pattern_list *pl,
1768 int show_progress)
1769{
1770 static struct strbuf prefix = STRBUF_INIT;
1771 char label[100];
1772 int rval;
1773
1774 strbuf_reset(&prefix);
1775 if (show_progress)
1776 istate->progress = start_delayed_progress(
1777 the_repository,
1778 _("Updating index flags"),
1779 istate->cache_nr);
1780
1781 xsnprintf(label, sizeof(label), "clear_ce_flags(0x%08lx,0x%08lx)",
1782 (unsigned long)select_mask, (unsigned long)clear_mask);
1783 trace2_region_enter("unpack_trees", label, istate->repo);
1784 rval = clear_ce_flags_1(istate,
1785 istate->cache,
1786 istate->cache_nr,
1787 &prefix,
1788 select_mask, clear_mask,
1789 pl, 0, 0);
1790 trace2_region_leave("unpack_trees", label, istate->repo);
1791
1792 stop_progress(&istate->progress);
1793 return rval;
1794}
1795
1796/*
1797 * Set/Clear CE_NEW_SKIP_WORKTREE according to $GIT_DIR/info/sparse-checkout

Callers 1

mark_new_skip_worktreeFunction · 0.85

Calls 4

start_delayed_progressFunction · 0.85
xsnprintfFunction · 0.85
clear_ce_flags_1Function · 0.85
stop_progressFunction · 0.85

Tested by

no test coverage detected