Skip to content

Commit e3dffd0

Browse files
committed
Fix comments
1 parent 69074a3 commit e3dffd0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/src/Gren.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ class Gren {
12981298
}
12991299

13001300
_sortCommitsByParent(commits, dateOrder = "desc") {
1301-
// 1) Build quick lookup
1301+
// 1) Map sha -> commit
13021302
const commitMap = new Map(commits.map((c) => [c.sha, c]));
13031303

13041304
// 2) Compute parents for each commit
@@ -1316,7 +1316,7 @@ class Gren {
13161316
}
13171317
}
13181318

1319-
// 4) Heads = commits that never appear as anyones parent
1319+
// 4) Heads = commits that never appear as anyone's parent
13201320
const heads = commits.filter((c) => !hasChild.has(c.sha)).map((c) => c.sha);
13211321

13221322
// 5) A helper to compare by newest date

0 commit comments

Comments
 (0)