|
|
|
@ -1,8 +1,8 @@ |
|
|
|
|
import { ViewPlugin } from "@remixproject/engine-web"; |
|
|
|
|
import { ReadBlobResult, ReadCommitResult } from "isomorphic-git"; |
|
|
|
|
import React from "react"; |
|
|
|
|
import { fileStatus, fileStatusMerge, setRemoteBranchCommits, setBranches, setCanCommit, setCommitChanges, setCommits, setCurrentBranch, setGitHubUser, setLoading, setRateLimit, setRemoteBranches, setRemotes, setRepos, setUpstream, setLocalBranchCommits, setBranchDifferences } from "../state/gitpayload"; |
|
|
|
|
import { GitHubUser, RateLimit, branch, commitChange, gitActionDispatch, statusMatrixType, gitState, branchDifference } from '../types'; |
|
|
|
|
import { fileStatus, fileStatusMerge, setRemoteBranchCommits, setBranches, setCanCommit, setCommitChanges, setCommits, setCurrentBranch, setGitHubUser, setLoading, setRateLimit, setRemoteBranches, setRemotes, setRepos, setUpstream, setLocalBranchCommits, setBranchDifferences, setRemoteAsDefault } from "../state/gitpayload"; |
|
|
|
|
import { GitHubUser, RateLimit, branch, commitChange, gitActionDispatch, statusMatrixType, gitState, branchDifference, remote } from '../types'; |
|
|
|
|
import { removeSlash } from "../utils"; |
|
|
|
|
import { disableCallBacks, enableCallBacks } from "./listeners"; |
|
|
|
|
import { AlertModal, ModalTypes } from "@remix-ui/app"; |
|
|
|
@ -797,3 +797,7 @@ export const getBranchCommits = async (branch: branch, page: number) => { |
|
|
|
|
await fetchBranch(branch, page) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export const setDefaultRemote = async (remote: remote) => { |
|
|
|
|
dispatch(setRemoteAsDefault(remote)) |
|
|
|
|
} |
|
|
|
|