mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Export PatchLine.isChange
This commit is contained in:
@ -97,7 +97,7 @@ func (self *patchPresenter) format() string {
|
|||||||
|
|
||||||
for _, line := range hunk.bodyLines {
|
for _, line := range hunk.bodyLines {
|
||||||
style := self.patchLineStyle(line)
|
style := self.patchLineStyle(line)
|
||||||
if line.isChange() {
|
if line.IsChange() {
|
||||||
appendLine(self.formatLine(line.Content, style, lineIdx))
|
appendLine(self.formatLine(line.Content, style, lineIdx))
|
||||||
} else {
|
} else {
|
||||||
appendLine(self.formatLineAux(line.Content, style, false))
|
appendLine(self.formatLineAux(line.Content, style, false))
|
||||||
|
@ -18,7 +18,7 @@ type PatchLine struct {
|
|||||||
Content string // something like '+ hello' (note the first character is not removed)
|
Content string // something like '+ hello' (note the first character is not removed)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (self *PatchLine) isChange() bool {
|
func (self *PatchLine) IsChange() bool {
|
||||||
return self.Kind == ADDITION || self.Kind == DELETION
|
return self.Kind == ADDITION || self.Kind == DELETION
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user