Skip to content

Commit 0072052

Browse files
committed
misc comment explanations @ parseNewGoodCommands
Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
1 parent 7363aab commit 0072052

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

parse-todo-of-stacked-rebase/parseNewGoodCommands.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,14 @@ export function parseNewGoodCommands(
4646
const last = newCommits.length - 1;
4747

4848
if (newCommits.length && newSHA === newCommits[last].newSHA) {
49+
/**
50+
* accumulating - if multiple commits got molded into 1
51+
*/
4952
newCommits[last].oldSHAs.push(oldSHA);
5053
} else {
54+
/**
55+
* initializing a new commit
56+
*/
5157
newCommits.push({
5258
newSHA,
5359
oldSHAs: [oldSHA],

0 commit comments

Comments
 (0)