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.
Instances For
@[deprecated Lake.GitRev.isFullSha1 (since := "2026-04-17")]
Instances For
@[reducible, inline]
A commit-ish Git revision.
This can be SHA1 commit hash, a branch name, or one of Git's more complex specifiers.
Instances For
The revision fetched during the last git fetch (i.e., FETCH_HEAD).
Instances For
Returns whether this revision is a 40-digit hexadecimal (SHA1) commit hash.
Instances For
@[inline]
Scopes the revision by the remote.
Instances For
@[inline]
Returns whether .git exists at the root of the repository directory.
Instances For
Instances For
Instances For
Remove untracked files from tracked folders in the repository.
Instances For
def Lake.GitRepo.resolveRemoteRevision (rev : GitRev) (remote : String := Git.defaultRemote) (repo : GitRepo) :
Instances For
def Lake.GitRepo.findRemoteRevision (repo : GitRepo) (rev? : Option GitRev := none) (remote : String := Git.defaultRemote) :