MCPcopy Create free account
hub / github.com/libgit2/git2go / DiffOptions

Struct DiffOptions

diff.go:504–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502type DiffNotifyCallback func(diffSoFar *Diff, deltaToAdd DiffDelta, matchedPathspec string) error
503
504type DiffOptions struct {
505 Flags DiffOptionsFlag
506 IgnoreSubmodules SubmoduleIgnore
507 Pathspec []string
508 NotifyCallback DiffNotifyCallback
509
510 ContextLines uint32
511 InterhunkLines uint32
512 IdAbbrev uint16
513
514 MaxSize int
515
516 OldPrefix string
517 NewPrefix string
518}
519
520func DefaultDiffOptions() (DiffOptions, error) {
521 opts := C.git_diff_options{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected