func handleHistory(d *Server, ctx context.Context, cmd *wire.Command) (*wire.Response, error) { repoPath := cmd.GetHistoryCommand().RepoPath history, err := d.Repo.OwnStore.History(repoPath) if err != nil { return nil, err } histProto, err := history.ToProto() if err != nil { return nil, err } return &wire.Response{ HistoryResp: &wire.Response_HistoryResp{ History: histProto, }, }, nil }