* 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)
| 109 | * first set. |
| 110 | */ |
| 111 | function 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 |
no test coverage detected
searching dependent graphs…