DiffOpts
このコンテンツはまだ日本語訳がありません。
DiffOpts =
object
Defined in: src/core/repo.ts:732
Options for git diff
Properties
abbrev?
optionalabbrev:number
Defined in: src/core/repo.ts:763
Abbreviate object names to specified length
context?
optionalcontext:number
Defined in: src/core/repo.ts:743
Number of context lines
detectCopies?
optionaldetectCopies:boolean|string
Defined in: src/core/repo.ts:771
Detect copies (optionally with threshold like ‘50%‘)
detectRenames?
optionaldetectRenames:boolean|string
Defined in: src/core/repo.ts:769
Detect renames (optionally with threshold like ‘50%‘)
detectRewrites?
optionaldetectRewrites:boolean|string
Defined in: src/core/repo.ts:767
Detect rewrites (optionally with threshold like ‘50%‘)
findCopiesHarder?
optionalfindCopiesHarder:boolean
Defined in: src/core/repo.ts:773
Find copies harder (inspects unmodified files as source)
fullIndex?
optionalfullIndex:boolean
Defined in: src/core/repo.ts:761
Show full 40-byte hexadecimal object name in diff
ignoreWhitespace?
optionalignoreWhitespace:boolean
Defined in: src/core/repo.ts:745
Ignore whitespace changes
mergeBase?
optionalmergeBase:string
Defined in: src/core/repo.ts:783
Show changes relative to a merge base
nameOnly?
optionalnameOnly:boolean
Defined in: src/core/repo.ts:739
Show name only
nameStatus?
optionalnameStatus:boolean
Defined in: src/core/repo.ts:741
Show name and status
noIndex?
optionalnoIndex:boolean
Defined in: src/core/repo.ts:785
Compare two paths on filesystem (not in repository)
nullTerminated?
optionalnullTerminated:boolean
Defined in: src/core/repo.ts:751
Use NUL as line terminator
numstat?
optionalnumstat:boolean
Defined in: src/core/repo.ts:757
Show number of added/deleted lines in decimal notation
patch?
optionalpatch:boolean
Defined in: src/core/repo.ts:753
Generate patch output
patchWithRaw?
optionalpatchWithRaw:boolean
Defined in: src/core/repo.ts:755
Generate patch and raw format together
patchWithStat?
optionalpatchWithStat:boolean
Defined in: src/core/repo.ts:759
Generate patch and diffstat together
paths?
optionalpaths:string[]
Defined in: src/core/repo.ts:747
Pathspecs to filter
pickaxe?
optionalpickaxe:string
Defined in: src/core/repo.ts:777
Look for string added/removed in a change (pickaxe)
pickaxeAll?
optionalpickaxeAll:boolean
Defined in: src/core/repo.ts:779
Show all files that changed, not just those with pickaxe match
renameLimit?
optionalrenameLimit:number
Defined in: src/core/repo.ts:775
Rename limit threshold
reverse?
optionalreverse:boolean
Defined in: src/core/repo.ts:765
Swap two inputs (show reverse diff)
staged?
optionalstaged:boolean
Defined in: src/core/repo.ts:735
Compare staged changes
stat?
optionalstat:boolean
Defined in: src/core/repo.ts:737
Show stat only
text?
optionaltext:boolean
Defined in: src/core/repo.ts:781
Treat all files as text
wordDiff?
optionalwordDiff:"color"|"plain"|"porcelain"|"none"
Defined in: src/core/repo.ts:787
Show word diff