mirror of
https://github.com/stablyai/orca.git
synced 2026-09-29 08:03:20 +00:00
* Add project Windows runtime selection * Fix project Windows runtime selection Co-authored-by: Orca <help@stably.ai> * fix: preserve WSL shell variables --------- Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com> Co-authored-by: Orca <help@stably.ai> Co-authored-by: Neil <neil@stably.ai>
17 lines
620 B
TypeScript
17 lines
620 B
TypeScript
import type { GitHistoryOptions, GitHistoryResult } from '../../shared/git-history'
|
|
import { loadGitHistoryFromExecutor } from '../../shared/git-history'
|
|
import type { GitRuntimeOptions } from './git-runtime-options'
|
|
import { gitOptionsForWorktree } from './git-runtime-options'
|
|
import { gitExecFileAsync } from './runner'
|
|
|
|
export async function getHistory(
|
|
worktreePath: string,
|
|
options: GitHistoryOptions & GitRuntimeOptions = {}
|
|
): Promise<GitHistoryResult> {
|
|
return loadGitHistoryFromExecutor(
|
|
(args, cwd) => gitExecFileAsync(args, gitOptionsForWorktree(cwd, options)),
|
|
worktreePath,
|
|
options
|
|
)
|
|
}
|