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.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]
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]
Instances For
@[inline]
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)
:
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]
Instances For
@[inline]
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)
:
Instances For
@[inline]