MCPcopy
hub / github.com/jesseduffield/lazygit / ContainsChanges

Method ContainsChanges

pkg/commands/patch/patch.go:82–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80}
81
82func (self *Patch) ContainsChanges() bool {
83 return lo.SomeBy(self.hunks, func(hunk *Hunk) bool {
84 return hunk.containsChanges()
85 })
86}
87
88// Takes a line index in the patch and returns the line number in the new file.
89// If the line is a header line, returns 1.

Callers 2

formatMethod · 0.80
NewStateFunction · 0.80

Calls 1

containsChangesMethod · 0.80

Tested by

no test coverage detected