Skip to content

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

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.

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              |  5 +++
 Documentation/technical/sparse-checkout.txt | 43 ++++++++++++++-------
 builtin/ls-files.c                          |  3 ++
 t/t3013-ls-files-format.sh                  | 23 +++++++++++
 5 files changed, 61 insertions(+), 14 deletions(-)

base-commit: a7caae2729742fc80147bca1c02ae848cb55921a

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