MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / changedFiles

Function changedFiles

scripts/check-generated-artifact-diff.cjs:23–26  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

21const root = git(['rev-parse', '--show-toplevel']).trim();
22
23function changedFiles(args) {
24 const out = git(args);
25 return out.split('\n').map(line => line.trim()).filter(Boolean);
26}
27
28const files = new Set([
29 ...changedFiles(['diff', '--name-only', '--', ...paths]),

Calls 2

gitFunction · 0.70
trimMethod · 0.65

Tested by

no test coverage detected