Subject: [PATCH 0/2] ls-files: introduce "--format" and "--object-only" options

From: "ZheNing Hu via GitGitGadget" <[email-masked]>
Date: Wed, 15 Jun 2022 13:45:50 +0000

Sometime we may need to extract some custom informations from git index
entries. Add a new option "--format" to "git ls-files" which can do such
thing, and add a new option "--object-only" which alias to
"--format=%(objectname)".

The origin discussion is here:
https://lore.kernel.org/git/[email-masked]/

ZheNing Hu (2):
  ls-files: introduce "--format" option
  ls-files: introduce "--object-only" option

 Documentation/git-ls-files.txt |  59 ++++++++++-
 builtin/ls-files.c             | 160 +++++++++++++++++++++++++++++-
 t/t3013-ls-files-format.sh     | 176 +++++++++++++++++++++++++++++++++
 3 files changed, 390 insertions(+), 5 deletions(-)
 create mode 100755 t/t3013-ls-files-format.sh

base-commit: ab336e8f1c8009c8b1aab8deb592148e69217085
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1262%2Fadlternative%2Fzh%2Fls-file-format-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1262/adlternative/zh/ls-file-format-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/1262
-- 
gitgitgadget