Skip to content

pr-1458/adlternative/zh/ls-file-format-skipworktree-v3

Add a %(skipworktree) atom git ls-files --format to indicate whether the
file in the index match the sparse specification.

v1: add %(skipworktree) atom to git ls-files format option. v2:

 1. no longer mentioned git ls-files -t.
 2. change %(skipworktree) output from "true"/"false" to "1"/"".
 3. fix the sparse-checkout docs link. v3:
 4. fixed numbering of paragraphs in documentation by using ".".
 5. revised little test style.

ZheNing Hu (2):
  docs: fix sparse-checkout docs link
  ls-files: add %(skipworktree) atom to format option

 Documentation/Makefile                      |  1 +
 Documentation/git-ls-files.txt              |  4 ++
 Documentation/technical/sparse-checkout.txt | 55 +++++++++++++--------
 builtin/ls-files.c                          |  3 ++
 t/t3013-ls-files-format.sh                  | 16 ++++++
 5 files changed, 59 insertions(+), 20 deletions(-)

base-commit: a7caae2729742fc80147bca1c02ae848cb55921a

Submitted-As: https://lore.kernel.org/git/pull.1458.v3.git.1675527416.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1458.git.1673451741587.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.1458.v2.git.1674149666.gitgitgadget@gmail.com
Assets 2