]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
docs: say 'git ls-files' instead of 'git-ls-files'
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 26 Apr 2022 12:55:58 +0000 (14:55 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 10 Jun 2022 08:34:17 +0000 (10:34 +0200)
The version with the hyphen hasn't been in $PATH for years, let's not
confuse our younger users.

man/mkosi.1
mkosi.md
mkosi/__init__.py
mkosi/backend.py

index 3182a29ee8dd5149e0665f9a207568bdfad37452..e32d7ccb4769b5d6101c6b838b6293681348e246 100644 (file)
@@ -969,8 +969,8 @@ Configures how the source file tree (as configured with
 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].
index 89e47e22ccd72a2fe4df976dbed603ac6f3011f6..aee6de1f9ff13889e3ad279dab00b89add228a8f 100644 (file)
--- a/mkosi.md
+++ b/mkosi.md
@@ -965,8 +965,8 @@ a machine ID.
   `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
index 0ed19f95b0a66969e2083f2af9bfbb7e83556394..e800c0fd1311d7cacded5bdc67808fe144f9b677 100644 (file)
@@ -3624,7 +3624,7 @@ def copy_git_files(src: Path, dest: Path, *, source_file_transfer: SourceFileTra
     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
 
index d7717cce62b697f8ce7d3e24cb98eb45de06ae22..12cee5e9ec8412840500d1725428383e71b78ed5 100644 (file)
@@ -194,9 +194,9 @@ class SourceFileTransfer(enum.Enum):
     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",
         }