ls-files: introduce "--format" option
commitce74de931d7aea9746e37632534eacc63b0c1a90
authorZheNing Hu <adlternative@gmail.com>
Sat, 23 Jul 2022 06:44:45 +0000 (23 06:44 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 23 Jul 2022 17:53:55 +0000 (23 10:53 -0700)
tree055af157523150f26dd169a7ccedae71f9aa876a
parent8168d5e9c23ed44ae3d604f392320d66556453c9
ls-files: introduce "--format" option

Add a new option "--format" that outputs index entries
informations in a custom format, taking inspiration
from the option with the same name in the `git ls-tree`
command.

"--format" cannot used with "-s", "-o", "-k", "-t",
" --resolve-undo","--deduplicate" and "--eol".

Signed-off-by: ZheNing Hu <adlternative@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-ls-files.txt
builtin/ls-files.c
t/t3013-ls-files-format.sh [new file with mode: 0755]