aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing
diff options
context:
space:
mode:
authorMiguel Molina <1312023+erizocosmico@users.noreply.github.com>2022-11-07 16:16:54 +0000
committerGitHub <noreply@github.com>2022-11-07 16:16:54 +0000
commit452df976faca7193b275bd31a0d76027a2a9df5c (patch)
tree40d5841fd4d6db6b086dc6b17cb7cbe9f9e6f6da /plumbing
parent1a0530e03cdcac6af61f064e180685cf2aec2802 (diff)
parentbb0153156f05cec7adb294f814d6efb4122b5f41 (diff)
downloadgo-git-452df976faca7193b275bd31a0d76027a2a9df5c.tar.gz
Merge pull request #586 from blmayer/patch-1
Fixed some little typos
Diffstat (limited to 'plumbing')
-rw-r--r--plumbing/format/diff/patch.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/plumbing/format/diff/patch.go b/plumbing/format/diff/patch.go
index 39a66a1..c7678b0 100644
--- a/plumbing/format/diff/patch.go
+++ b/plumbing/format/diff/patch.go
@@ -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
@@ -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
}
@@ -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