11import { parseArgs } from "node:util" ;
2- import type { GitOptions } from "git-raw-commits" ;
32
4- import { getHistoryCommits } from "./get-history-commits.js" ;
3+ import { getHistoryCommits , type HistoryCommitsOptions } from "./get-history-commits.js" ;
54import { getEditCommit } from "./get-edit-commit.js" ;
65
76import { x } from "tinyexec" ;
@@ -60,12 +59,12 @@ export default async function getCommitMessages(
6059 }
6160
6261 // Verify the two refs share a merge-base before handing off the range
63- // walk to git-raw-commits . In a shallow clone the common ancestor may
62+ // walk to the git client . In a shallow clone the common ancestor may
6463 // be missing, in which case `git log from..to` silently returns only
6564 // the commits that happen to be present, hiding invalid commits in the
6665 // unfetched portion of history.
6766 if ( from ) {
68- // `to` is left undefined here when no --to was given; git-raw-commits
67+ // `to` is left undefined here when no --to was given; the git client
6968 // defaults it to HEAD, so we mirror that for the merge-base check.
7069 const effectiveTo = to ?? "HEAD" ;
7170 const mergeBase = await x ( "git" , [ "merge-base" , from , effectiveTo ] , {
@@ -80,7 +79,7 @@ export default async function getCommitMessages(
8079 }
8180 }
8281
83- let gitOptions : GitOptions = { from, to } ;
82+ let gitOptions : HistoryCommitsOptions = { from, to } ;
8483 if ( gitLogArgs ) {
8584 const { values, positionals } = parseArgs ( {
8685 args : gitLogArgs . split ( " " ) ,
0 commit comments