import gitRawCommits from 'git-raw-commits' ; import { streamToPromise } from './stream-to-promise' ; export async function getHistoryCommits ( options , opts = { } ) { return streamToPromise ( gitRawCommits ( options , { cwd : opts . cwd } ) ) ; }