diff

package
v0.0.0-...-bd4d0b6 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathOffsetOne

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

Types

type ImpactLineMap

type ImpactLineMap = map[string][]int

ImpactLineMap file name -> lines

func GitDiff

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

func PathOffset

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

func Unified2Impact

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

Jump to

Keyboard shortcuts

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