We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69074a3 commit e3dffd0Copy full SHA for e3dffd0
1 file changed
lib/src/Gren.js
@@ -1298,7 +1298,7 @@ class Gren {
1298
}
1299
1300
_sortCommitsByParent(commits, dateOrder = "desc") {
1301
- // 1) Build quick lookup
+ // 1) Map sha -> commit
1302
const commitMap = new Map(commits.map((c) => [c.sha, c]));
1303
1304
// 2) Compute parents for each commit
@@ -1316,7 +1316,7 @@ class Gren {
1316
1317
1318
1319
- // 4) Heads = commits that never appear as anyone’s parent
+ // 4) Heads = commits that never appear as anyone's parent
1320
const heads = commits.filter((c) => !hasChild.has(c.sha)).map((c) => c.sha);
1321
1322
// 5) A helper to compare by newest date
0 commit comments