getRepo method

Future<XRPCResponse<RepoCommits>> getRepo({
  1. required String did,
  2. String? sinceCommitCid,
  3. ProgressStatus? progress,
  4. Map<String, String>? headers,
})

Implementation

Future<core.XRPCResponse<RepoCommits>> getRepo({
  required String did,
  String? sinceCommitCid,
  core.ProgressStatus? progress,
  Map<String, String>? headers,
}) async =>
    await _ctx.get(
      ns.comAtprotoSyncGetRepo,
      headers: headers,
      parameters: {
        'did': did,
        'since': sinceCommitCid,
      },
      adaptor: (data) => toRepoCommits(
        data,
        progress,
      ),
      to: RepoCommits.fromJson,
    );