RevParseRefOpts
このコンテンツはまだ日本語訳がありません。
RevParseRefOpts =
object
Defined in: src/core/repo.ts:1498
Options that modify how a ref is resolved
Properties
abbrevRef?
optionalabbrevRef:boolean|"strict"|"loose"
Defined in: src/core/repo.ts:1504
Output abbreviated ref name (e.g., “main” instead of SHA)
quiet?
optionalquiet: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?
optionalshort:boolean|number
Defined in: src/core/repo.ts:1502
Shorten to unique prefix (true for default length, number for specific length)
symbolic?
optionalsymbolic:boolean
Defined in: src/core/repo.ts:1506
Output in a form as close to the original input as possible
symbolicFullName?
optionalsymbolicFullName:boolean
Defined in: src/core/repo.ts:1508
Output full refname (e.g., “refs/heads/main” instead of “main”)
verify?
optionalverify:boolean
Defined in: src/core/repo.ts:1500
Verify that the parameter can be turned into a raw SHA-1 (stricter parsing)