We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42bbe96 commit ef1a141Copy full SHA for ef1a141
pkg/commands/patch/format.go
@@ -97,7 +97,7 @@ func (self *patchPresenter) format() string {
97
98
for _, line := range hunk.bodyLines {
99
style := self.patchLineStyle(line)
100
- if line.isChange() {
+ if line.IsChange() {
101
appendLine(self.formatLine(line.Content, style, lineIdx))
102
} else {
103
appendLine(self.formatLineAux(line.Content, style, false))
pkg/commands/patch/patch_line.go
@@ -18,7 +18,7 @@ type PatchLine struct {
18
Content string // something like '+ hello' (note the first character is not removed)
19
}
20
21
-func (self *PatchLine) isChange() bool {
+func (self *PatchLine) IsChange() bool {
22
return self.Kind == ADDITION || self.Kind == DELETION
23
24
0 commit comments