MCPcopy Create free account
hub / github.com/Silentely/eSIM-Tools / getTouchedProtectedFiles

Function getTouchedProtectedFiles

scripts/pre-push-check.js:81–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79}
80
81function getTouchedProtectedFiles() {
82 if (PROTECTED_FILES.length === 0) return [];
83 const range = getDiffRange();
84 if (!range) {
85 return [];
86 }
87
88 const output = runGit([
89 'diff',
90 '--name-only',
91 '--diff-filter=ACMR',
92 '-z',
93 range,
94 '--',
95 ...PROTECTED_FILES
96 ]);
97
98 return output.split('\0').filter(Boolean);
99}
100
101function buildSteps(mode) {
102 const steps = [

Callers 1

mainFunction · 0.70

Calls 2

getDiffRangeFunction · 0.85
runGitFunction · 0.85

Tested by

no test coverage detected