コンテンツにスキップ

GitOpenOptions

このコンテンツはまだ日本語訳がありません。

GitOpenOptions = object

Defined in: src/core/types.ts:378

Options for opening a repository with environment isolation (§6.3)

Provides declarative environment configuration for Git operations.

Properties

credential?

optional credential: CredentialConfig

Defined in: src/core/types.ts:399

Credential configuration (§6.4)


credentialHelper?

optional credentialHelper: string

Defined in: src/core/types.ts:384

Custom credential helper


env?

optional env: Record<string, string>

Defined in: src/core/types.ts:386

Additional environment variables


home?

optional home: string

Defined in: src/core/types.ts:380

Custom HOME directory (~/.gitconfig source)


ignoreSystemConfig?

optional ignoreSystemConfig: boolean

Defined in: src/core/types.ts:382

Ignore system config (—config-env=GIT_CONFIG_GLOBAL=/dev/null equivalent)


inheritEnv?

optional inheritEnv: EnvInheritance

Defined in: src/core/types.ts:395

Controls how the parent process environment is inherited by spawned Git commands.

By default, only a curated allowlist of variables that Git needs to operate is inherited (environment variable traversal prevention). Set to true to inherit the full parent environment, or provide an array of variable names to opt additional variables back in.


lfs?

optional lfs: LfsMode

Defined in: src/core/types.ts:401

LFS mode configuration


pathPrefix?

optional pathPrefix: string[]

Defined in: src/core/types.ts:397

Directories to prepend to PATH