dmitri.shuralyov.com/app/changes

Rename ListCommitsOptions to GetDiffOptions.
dmitshur committed 7 years ago commit 428c4dbdfe44769e82679f3f7a7a175404652a96
Showing partial commit. Full Commit
Collapse all
main.go
@@ -402,13 +402,13 @@ func (h *handler) ChangeFilesHandler(w http.ResponseWriter, req *http.Request, c
		}
		if next := i + 1; next < len(cs) {
			commit.NextSHA = cs[next].SHA
		}
	}
	var opt *changes.ListCommitsOptions
	var opt *changes.GetDiffOptions
	if commitID != "" {
		opt = &changes.ListCommitsOptions{Commit: commitID}
		opt = &changes.GetDiffOptions{Commit: commitID}
	}
	rawDiff, err := h.is.GetDiff(req.Context(), state.RepoSpec, state.IssueID, opt)
	if err != nil {
		return err
	}