Skip to content

Commit ef1a141

Browse files
committed
Export PatchLine.isChange
1 parent 42bbe96 commit ef1a141

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/commands/patch/format.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func (self *patchPresenter) format() string {
9797

9898
for _, line := range hunk.bodyLines {
9999
style := self.patchLineStyle(line)
100-
if line.isChange() {
100+
if line.IsChange() {
101101
appendLine(self.formatLine(line.Content, style, lineIdx))
102102
} else {
103103
appendLine(self.formatLineAux(line.Content, style, false))

pkg/commands/patch/patch_line.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type PatchLine struct {
1818
Content string // something like '+ hello' (note the first character is not removed)
1919
}
2020

21-
func (self *PatchLine) isChange() bool {
21+
func (self *PatchLine) IsChange() bool {
2222
return self.Kind == ADDITION || self.Kind == DELETION
2323
}
2424

0 commit comments

Comments
 (0)