toImmutable method

ImmutableGitContext toImmutable()

Implementation

ImmutableGitContext toImmutable() {
  return ImmutableGitContext(
    partiallyStagedFiles: List.unmodifiable(partiallyStagedFiles),
    deletedFiles: List.unmodifiable(deletedFiles),
    mergeHead: mergeHead,
    mergeMode: mergeMode,
    mergeMsg: mergeMsg,
    stashHash: stashHash,
    hidePartiallyStaged: hidePartiallyStaged,
    nonStagedFiles: nonStagedFiles,
  );
}