diff

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathOffsetOne added in v0.10.0

func PathOffsetOne(repoRoot string, srcRoot string, target string) (string, error)

Types

type AffectedLineMap

type AffectedLineMap = map[string][]int

file name -> lines

func GitDiff

func GitDiff(rootDir string, before string, after string) (AffectedLineMap, error)

func PathOffset added in v0.9.4

func PathOffset(repoRoot string, srcRoot string, origin AffectedLineMap) (AffectedLineMap, error)

func Unified2Affected

func Unified2Affected(patch []byte) (AffectedLineMap, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL