Files
orca/src/main/git/history.ts
0ec3882cb8 Add project Windows runtime selection (#5519)
* 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>
2026-06-17 16:08:14 -07:00

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
)
}