1
0
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:
Stefan Haller
2025-07-03 18:10:16 +02:00
parent 42bbe965fa
commit ef1a141347
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ func (self *patchPresenter) format() string {
for _, line := range hunk.bodyLines {
style := self.patchLineStyle(line)
if line.isChange() {
if line.IsChange() {
appendLine(self.formatLine(line.Content, style, lineIdx))
} else {
appendLine(self.formatLineAux(line.Content, style, false))

View File

@ -18,7 +18,7 @@ type PatchLine struct {
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
}