MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / sparse

Function sparse

__tests__/sparse-checkout.test.ts:139–143  ·  view source on GitHub ↗
(...extra: string[])

Source from the content-addressed store, hash-verified

137
138 /** A real sparse checkout; `away/` and everything under it leaves the disk. */
139 const sparse = (...extra: string[]) => {
140 git('sparse-checkout', 'set', ...extra, 'kept');
141 expect(fs.existsSync(path.join(root, 'away'))).toBe(false);
142 expect(git('ls-files', '-t')).toContain('S away/one/two/Gone.java'); // the premise: git lists them
143 };
144 const onDisk = ['kept/Here.java', 'kept/deep/There.java'];
145
146 it('the scan lists what the checkout holds, not what it leaves out', () => {

Callers 1

Calls 2

gitFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected