Sources
repoverlay supports three types of overlay sources: local directories, GitHub repositories, and overlay repository references.
Local directories
Section titled “Local directories”The simplest source — a directory on your filesystem:
repoverlay apply /path/to/overlayrepoverlay apply ./relative/overlayFiles are symlinked (or copied) directly from the source directory. Changes to the source are reflected immediately when using symlinks.
GitHub repositories
Section titled “GitHub repositories”Pull overlays from any public GitHub repository:
# Default branchrepoverlay apply https://github.com/owner/repo
# Specific branch or tagrepoverlay apply https://github.com/owner/repo/tree/v1.0.0repoverlay apply https://github.com/owner/repo --ref develop
# Subdirectory within a reporepoverlay apply https://github.com/owner/repo/tree/main/overlays/rustGitHub sources are cached locally using shallow clones. Use repoverlay update to pull new changes.
Overlay repository references
Section titled “Overlay repository references”If you've configured a shared overlay repository, you can reference overlays by name:
repoverlay apply org/repo/overlay-nameThis is the most convenient way to share overlays across a team or organization. See Overlay Repositories for setup details.
How sources are resolved
Section titled “How sources are resolved”When you provide a source string, repoverlay determines the type automatically:
- Strings starting with
https://github.com/are treated as GitHub sources - Strings that look like filesystem paths (
./,/,~/) are treated as local sources - Strings matching the
org/repo/namepattern are treated as overlay repo references