Try to turn a remote URL into a URL that can be used to, e.g.,
make GitHub API requests. That is, do not accept SSH URLs and
drop an ending .git
.
Equations
Instances For
Equations
- Lake.instCoeFilePathGitRepo = { coe := fun (x : System.FilePath) => { dir := x } }
Equations
- Lake.instToStringGitRepo = { toString := fun (x : Lake.GitRepo) => x.dir.toString }
Equations
- Lake.GitRepo.cwd = { dir := { toString := "." } }
Instances For
@[inline]
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline]
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline]
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline]
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline]
Equations
- repo.insideWorkTree = Lake.GitRepo.testGit #["rev-parse", "--is-inside-work-tree"] repo
Instances For
@[inline]
Equations
- repo.fetch remote = Lake.GitRepo.execGit #["fetch", "--tags", "--force", remote] repo
Instances For
@[inline]
Equations
- Lake.GitRepo.checkoutBranch branch repo = Lake.GitRepo.execGit #["checkout", "-B", branch] repo
Instances For
@[inline]
Equations
- Lake.GitRepo.checkoutDetach hash repo = Lake.GitRepo.execGit #["checkout", "--detach", hash, "--"] repo
Instances For
@[inline]
Equations
- Lake.GitRepo.resolveRevision? rev repo = Lake.GitRepo.captureGit? #["rev-parse", "--verify", "--end-of-options", rev] repo
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lake.GitRepo.resolveRemoteRevision
(rev : String)
(remote : String := Lake.Git.defaultRemote)
(repo : Lake.GitRepo)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lake.GitRepo.findRemoteRevision
(repo : Lake.GitRepo)
(rev? : Option String := none)
(remote : String := Lake.Git.defaultRemote)
:
Equations
- repo.findRemoteRevision rev? remote = do repo.fetch remote Lake.GitRepo.resolveRemoteRevision (rev?.getD Lake.Git.upstreamBranch) remote repo
Instances For
@[inline]
Equations
- Lake.GitRepo.branchExists rev repo = Lake.GitRepo.testGit #["show-ref", "--verify", toString "refs/heads/" ++ toString rev ++ toString ""] repo
Instances For
@[inline]
Equations
- Lake.GitRepo.revisionExists rev repo = Lake.GitRepo.testGit #["rev-parse", "--verify", rev ++ "^{commit}"] repo
Instances For
@[inline]
Equations
Instances For
@[inline]
Equations
- Lake.GitRepo.findTag? rev repo = Lake.GitRepo.captureGit? #["describe", "--tags", "--exact-match", rev] repo
Instances For
@[inline]
Equations
- Lake.GitRepo.getRemoteUrl? remote repo = Lake.GitRepo.captureGit? #["remote", "get-url", remote] repo
Instances For
def
Lake.GitRepo.getFilteredRemoteUrl?
(remote : String := Lake.Git.defaultRemote)
(repo : Lake.GitRepo)
:
Equations
- Lake.GitRepo.getFilteredRemoteUrl? remote repo = (do let __do_lift ← Lake.GitRepo.getRemoteUrl? remote repo liftM (Lake.Git.filterUrl? __do_lift)).run
Instances For
@[inline]