the first phase of the build.
Takes one of \f[C]copy-all\f[R] (to copy all files from the source
tree), \f[C]copy-git-cached\f[R] (to copy only those files
-\f[C]git-ls-files --cached\f[R] lists), \f[C]copy-git-others\f[R] (to
-copy only those files \f[C]git-ls-files --others\f[R] lists),
+\f[C]git ls-files --cached\f[R] lists), \f[C]copy-git-others\f[R] (to
+copy only those files \f[C]git ls-files --others\f[R] lists),
\f[C]mount\f[R] to bind mount the source tree directly.
Defaults to \f[C]copy-git-cached\f[R] if a \f[C]git\f[R] source tree is
detected, otherwise \f[C]copy-all\f[R].
`BuildSources=`) is transferred into the container image during the
first phase of the build. Takes one of `copy-all` (to copy all files
from the source tree), `copy-git-cached` (to copy only those files
- `git-ls-files --cached` lists), `copy-git-others` (to copy only
- those files `git-ls-files --others` lists), `mount` to bind mount
+ `git ls-files --cached` lists), `copy-git-others` (to copy only
+ those files `git ls-files --others` lists), `mount` to bind mount
the source tree directly. Defaults to `copy-git-cached` if a `git`
source tree is detected, otherwise `copy-all`. When you specify
`copy-git-more`, it is the same as `copy-git-cached`, except it also
c = run(["git", "-C", src, "submodule", "status", "--recursive"], stdout=PIPE, text=True, user=uid)
submodules = {x.split()[1] for x in c.stdout.splitlines()}
- # workaround for git-ls-files returning the path of submodules that we will
+ # workaround for git ls-files returning the path of submodules that we will
# still parse
files -= submodules
def doc(cls) -> Dict[SourceFileTransfer, str]:
return {
cls.copy_all: "normal file copy",
- cls.copy_git_cached: "use git-ls-files --cached, ignoring any file that git itself ignores",
- cls.copy_git_others: "use git-ls-files --others, ignoring any file that git itself ignores",
- cls.copy_git_more: "use git-ls-files --cached, ignoring any file that git itself ignores, but include the .git/ directory",
+ cls.copy_git_cached: "use git ls-files --cached, ignoring any file that git itself ignores",
+ cls.copy_git_others: "use git ls-files --others, ignoring any file that git itself ignores",
+ cls.copy_git_more: "use git ls-files --cached, ignoring any file that git itself ignores, but include the .git/ directory",
cls.mount: "bind mount source files into the build image",
}