MCPcopy Index your code
hub / github.com/angular/angular / diff

Function diff

scripts/compare-main-to-patch.js:111–119  ·  view source on GitHub ↗

* Returns a list of items present in `mapA`, but *not* present in `mapB`. * This function is needed to compare 2 sets of commits and return the list of unique commits in the * first set.

(mapA, mapB)

Source from the content-addressed store, hash-verified

109 * first set.
110 */
111function diff(mapA, mapB) {
112 const result = [];
113 mapA.forEach((value, key) => {
114 if (!mapB.has(key)) {
115 result.push(getCommitInfoAsString(value[1], value[0]));
116 }
117 });
118 return result;
119}
120
121/**
122 * @param {Map<string, [string, string]>} commitsMap - commit map from collectCommitsAsMap

Callers 1

mainFunction · 0.70

Calls 4

getCommitInfoAsStringFunction · 0.85
hasMethod · 0.65
forEachMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…