Documentation
¶
Overview ¶
Copyright 2020 Fugue, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func Archive(ctx context.Context, gitDir, tmpDir string) (string, error)
- func CommitID(ctx context.Context, gitDir string) (string, error)
- func CreateArchive(ctx context.Context, repo, dst string) error
- func DownloadExtractArchive(ctx context.Context, store store.Store, workspace, key string) error
- func InitSubmodules(ctx context.Context, gitDir string) error
- func ListSubmodules(ctx context.Context, gitDir string) ([]string, error)
- func RepoRoot(dir string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateArchive ¶
CreateArchive creates a Git archive at the given path
func DownloadExtractArchive ¶
DownloadExtractArchive downloads a Zip of a Git repo and unzips it
func InitSubmodules ¶
InitSubmodules call "git submodule init"
func ListSubmodules ¶
ListSubmodules returns a list of paths to submodules within a git repo
Types ¶
This section is empty.