コンテンツにスキップ

RevParseRefOpts

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

RevParseRefOpts = object

Defined in: src/core/repo.ts:1498

Options that modify how a ref is resolved

Properties

abbrevRef?

optional abbrevRef: boolean | "strict" | "loose"

Defined in: src/core/repo.ts:1504

Output abbreviated ref name (e.g., “main” instead of SHA)


quiet?

optional quiet: boolean

Defined in: src/core/repo.ts:1513

In —verify mode, exit silently with non-zero status on invalid input instead of outputting an error message. Only works with —verify.


short?

optional short: boolean | number

Defined in: src/core/repo.ts:1502

Shorten to unique prefix (true for default length, number for specific length)


symbolic?

optional symbolic: boolean

Defined in: src/core/repo.ts:1506

Output in a form as close to the original input as possible


symbolicFullName?

optional symbolicFullName: boolean

Defined in: src/core/repo.ts:1508

Output full refname (e.g., “refs/heads/main” instead of “main”)


verify?

optional verify: boolean

Defined in: src/core/repo.ts:1500

Verify that the parameter can be turned into a raw SHA-1 (stricter parsing)