MCPcopy Create free account
hub / github.com/JanSmrcka/differ / updateDiff

Method updateDiff

internal/ui/log.go:105–116  ·  view source on GitHub ↗
(msg tea.KeyMsg)

Source from the content-addressed store, hash-verified

103}
104
105func (m LogModel) updateDiff(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
106 switch msg.String() {
107 case "q", "ctrl+c":
108 return m, tea.Quit
109 case "esc":
110 m.mode = logModeList
111 return m, nil
112 }
113 var cmd tea.Cmd
114 m.viewport, cmd = m.viewport.Update(msg)
115 return m, cmd
116}
117
118func (m LogModel) loadCommitDiff() tea.Cmd {
119 commit := m.commits[m.cursor]

Callers 1

UpdateMethod · 0.95

Calls 1

UpdateMethod · 0.45

Tested by

no test coverage detected