コンテンツにスキップ

DiffOpts

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

DiffOpts = object

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

Options for git diff

Properties

abbrev?

optional abbrev: number

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

Abbreviate object names to specified length


context?

optional context: number

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

Number of context lines


detectCopies?

optional detectCopies: boolean | string

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

Detect copies (optionally with threshold like ‘50%‘)


detectRenames?

optional detectRenames: boolean | string

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

Detect renames (optionally with threshold like ‘50%‘)


detectRewrites?

optional detectRewrites: boolean | string

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

Detect rewrites (optionally with threshold like ‘50%‘)


findCopiesHarder?

optional findCopiesHarder: boolean

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

Find copies harder (inspects unmodified files as source)


fullIndex?

optional fullIndex: boolean

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

Show full 40-byte hexadecimal object name in diff


ignoreWhitespace?

optional ignoreWhitespace: boolean

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

Ignore whitespace changes


mergeBase?

optional mergeBase: string

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

Show changes relative to a merge base


nameOnly?

optional nameOnly: boolean

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

Show name only


nameStatus?

optional nameStatus: boolean

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

Show name and status


noIndex?

optional noIndex: boolean

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

Compare two paths on filesystem (not in repository)


nullTerminated?

optional nullTerminated: boolean

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

Use NUL as line terminator


numstat?

optional numstat: boolean

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

Show number of added/deleted lines in decimal notation


patch?

optional patch: boolean

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

Generate patch output


patchWithRaw?

optional patchWithRaw: boolean

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

Generate patch and raw format together


patchWithStat?

optional patchWithStat: boolean

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

Generate patch and diffstat together


paths?

optional paths: string[]

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

Pathspecs to filter


pickaxe?

optional pickaxe: string

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

Look for string added/removed in a change (pickaxe)


pickaxeAll?

optional pickaxeAll: boolean

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

Show all files that changed, not just those with pickaxe match


renameLimit?

optional renameLimit: number

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

Rename limit threshold


reverse?

optional reverse: boolean

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

Swap two inputs (show reverse diff)


staged?

optional staged: boolean

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

Compare staged changes


stat?

optional stat: boolean

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

Show stat only


text?

optional text: boolean

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

Treat all files as text


wordDiff?

optional wordDiff: "color" | "plain" | "porcelain" | "none"

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

Show word diff