MCPcopy
hub / github.com/di-sukharev/opencommit / _t

Method _t

out/cli.cjs:64554–64572  ·  view source on GitHub ↗
(path5, cache, checkUnignored, slices)

Source from the content-addressed store, hash-verified

64552 const path5 = originalPath && checkPath.convert(originalPath);
64553 checkPath(
64554 path5,
64555 originalPath,
64556 this._allowRelativePaths ? RETURN_FALSE : throwError
64557 );
64558 return this._t(path5, cache, checkUnignored, slices);
64559 }
64560 _t(path5, cache, checkUnignored, slices) {
64561 if (path5 in cache) {
64562 return cache[path5];
64563 }
64564 if (!slices) {
64565 slices = path5.split(SLASH);
64566 }
64567 slices.pop();
64568 if (!slices.length) {
64569 return cache[path5] = this._testOne(path5, checkUnignored);
64570 }
64571 const parent = this._t(
64572 slices.join(SLASH) + SLASH,
64573 cache,
64574 checkUnignored,
64575 slices

Callers 1

_testMethod · 0.80

Calls 1

_testOneMethod · 0.80

Tested by

no test coverage detected