OnFileSelected loads/fetches the diff for the selected file and refreshes the display
(statusType StatusType, filePath string)
| 399 | |
| 400 | // OnFileSelected loads/fetches the diff for the selected file and refreshes the display |
| 401 | func (diffView *DiffView) OnFileSelected(statusType StatusType, filePath string) { |
| 402 | log.Debugf("DiffView loading diff for file %v", filePath) |
| 403 | |
| 404 | request := &fileDiffLoadRequest{ |
| 405 | statusType: statusType, |
| 406 | filePath: filePath, |
| 407 | } |
| 408 | |
| 409 | diffView.lock.Lock() |
| 410 | diffView.lastRequestedDiff = request.diffID() |
| 411 | diffView.lock.Unlock() |
| 412 | |
| 413 | diffView.addDiffLoadRequest(request) |
| 414 | } |
| 415 | |
| 416 | // OnStageGroupSelected does nothing |
| 417 | func (diffView *DiffView) OnStageGroupSelected(statusType StatusType) { |
nothing calls this directly
no test coverage detected