interdiff

package module
v0.0.0-...-bdb22a6 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: ISC Imports: 8 Imported by: 0

README

interdiff Go Report Card

Documentation

Overview

Package interdiff provides tools to compute the diff between source and diff files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyDiff

func ApplyDiff(source string, diffFile *diff.FileDiff) (string, error)

ApplyDiff returns applied changes from diffFile to source

func InterDiff

func InterDiff(oldDiff, newDiff io.Reader) (string, error)

InterDiff computes the diff of a source file patched with oldDiff and the same source file patched with newDiff. oldDiff and newDiff should be in unified format.

func MixedMode

func MixedMode(oldSource, newSource io.Reader, oldFileDiff, newFileDiff *diff.FileDiff) (string, error)

MixedMode computes the diff of a oldSource file patched with oldDiff and the newSource file patched with newDiff.

func MixedModePath

func MixedModePath(oldSourcePath, newSourcePath string, oldDiff, newDiff io.Reader) (string, error)

MixedModePath computes the diff of a oldSource patched with oldDiff and the newSource patched with newDiff.

Types

This section is empty.

Jump to

Keyboard shortcuts

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