Documentation

Lake.Util.Git

Equations
Instances For

    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
      @[deprecated Lake.GitRev.isFullSha1 (since := "2026-04-17")]
      Equations
      Instances For
        structure Lake.GitRepo :
        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.

          Equations
          Instances For

            The head revision (i.e., HEAD).

            Equations
            Instances For

              The revision fetched during the last git fetch (i.e., FETCH_HEAD).

              Equations
              Instances For

                Returns whether this revision is a 40-digit hexadecimal (SHA1) commit hash.

                Equations
                Instances For
                  @[inline]
                  def Lake.GitRev.withRemote (remote : String) (rev : GitRev) :

                  Scopes the revision by the remote.

                  Equations
                  Instances For
                    @[implicit_reducible]
                    Equations
                    @[implicit_reducible]
                    Equations
                    Equations
                    Instances For
                      @[inline]
                      Equations
                      Instances For
                        @[inline]
                        Equations
                        Instances For
                          @[inline]
                          Equations
                          Instances For
                            @[inline]
                            Equations
                            Instances For
                              @[inline]
                              Equations
                              Instances For
                                Equations
                                Instances For
                                  Equations
                                  Instances For
                                    Equations
                                    Instances For
                                      Equations
                                      Instances For
                                        Equations
                                        Instances For
                                          Equations
                                          Instances For
                                            Equations
                                            Instances For
                                              Equations
                                              Instances For

                                                Remove untracked files from tracked folders in the repository.

                                                Equations
                                                Instances For

                                                  Resolves the revision to a Git object name (SHA1 hash) which or may not exist in the repository.

                                                  Equations
                                                  Instances For

                                                    Resolves the revision to a valid commit hash within the repository.

                                                    Equations
                                                    Instances For
                                                      Equations
                                                      • One or more equations did not get rendered due to their size.
                                                      Instances For
                                                        Equations
                                                        • One or more equations did not get rendered due to their size.
                                                        Instances For
                                                          Equations
                                                          • One or more equations did not get rendered due to their size.
                                                          Instances For
                                                            Equations
                                                            • One or more equations did not get rendered due to their size.
                                                            Instances For
                                                              Equations
                                                              • One or more equations did not get rendered due to their size.
                                                              Instances For
                                                                Equations
                                                                Instances For
                                                                  Equations
                                                                  Instances For
                                                                    Equations
                                                                    Instances For
                                                                      Equations
                                                                      Instances For
                                                                        Equations
                                                                        Instances For
                                                                          Equations
                                                                          Instances For
                                                                            def Lake.GitRepo.addRemote (remote url : String) (repo : GitRepo) :
                                                                            Equations
                                                                            Instances For
                                                                              def Lake.GitRepo.setRemoteUrl (remote url : String) (repo : GitRepo) :
                                                                              Equations
                                                                              Instances For
                                                                                Equations
                                                                                Instances For
                                                                                  Equations
                                                                                  Instances For
                                                                                    @[inline]
                                                                                    Equations
                                                                                    Instances For