diff

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 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 ImpactLineMap added in v0.10.2

type ImpactLineMap = map[string][]int

ImpactLineMap file name -> lines

func GitDiff

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

func PathOffset added in v0.9.4

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

func Unified2Impact added in v0.10.2

func Unified2Impact(patch []byte) (ImpactLineMap, error)

Jump to

Keyboard shortcuts

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