MCPcopy Index your code
hub / github.com/darkreader/darkreader / checkoutHead

Function checkoutHead

tasks/cli.js:119–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117}
118
119async function checkoutHead() {
120 // Restore current files
121 await execute('git restore --source HEAD -- package.json package-lock.json src/ tasks/');
122 // Clean up files which existed earlier but were deleted
123 await execute('git clean -f -- package.json package-lock.json src/ tasks/');
124 await execute('npm install --ignore-scripts');
125}
126
127function validateArguments(args) {
128 const validationErrors = [];

Callers 1

runFunction · 0.85

Calls 1

executeFunction · 0.90

Tested by

no test coverage detected