MCPcopy Create free account
hub / github.com/microsoft/vscode-cpptools / hasAnyChanges

Function hasAnyChanges

Extension/translations_auto_pr.js:54–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54function hasAnyChanges() {
55 console.log("Checking if any files have changed (git status --porcelain)");
56 let output = cp.execSync('git status --porcelain');
57 let lines = output.toString().split("\n");
58 let anyChanges = false;
59 lines.forEach(line => {
60 if (line != '') {
61 console.log("Change detected: " + line);
62 anyChanges = true;
63 }
64 });
65
66 return anyChanges;
67}
68
69// When invoked on build server, we should already be in a repo freshly synced to the mergeTo branch
70

Callers 1

Calls 2

toStringMethod · 0.80
forEachMethod · 0.45

Tested by

no test coverage detected