Skip to content

Commit

Permalink
Fixed some little typos
Browse files Browse the repository at this point in the history
  • Loading branch information
blmayer authored and durandj committed Jul 1, 2023
1 parent d86e825 commit d80a27b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plumbing/format/diff/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
type Operation int

const (
// Equal item represents a equals diff.
// Equal item represents an equals diff.
Equal Operation = iota
// Add item represents an insert diff.
Add
Expand All @@ -26,15 +26,15 @@ type Patch interface {
Message() string
}

// FilePatch represents the necessary steps to transform one file to another.
// FilePatch represents the necessary steps to transform one file into another.
type FilePatch interface {
// IsBinary returns true if this patch is representing a binary file.
IsBinary() bool
// Files returns the from and to Files, with all the necessary metadata to
// Files returns the from and to Files, with all the necessary metadata
// about them. If the patch creates a new file, "from" will be nil.
// If the patch deletes a file, "to" will be nil.
Files() (from, to File)
// Chunks returns a slice of ordered changes to transform "from" File to
// Chunks returns a slice of ordered changes to transform "from" File into
// "to" File. If the file is a binary one, Chunks will be empty.
Chunks() []Chunk
}
Expand All @@ -49,7 +49,7 @@ type File interface {
Path() string
}

// Chunk represents a portion of a file transformation to another.
// Chunk represents a portion of a file transformation into another.
type Chunk interface {
// Content contains the portion of the file.
Content() string
Expand Down

0 comments on commit d80a27b

Please sign in to comment.