ls-tree: detect and error on --name-only --name-status
commit0f8878359207191195867ebd499abba3710f9f4b
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 23 Mar 2022 09:13:14 +0000 (23 17:13 +0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Mar 2022 18:38:41 +0000 (23 11:38 -0700)
treeb5bed6f68cab32eaf402b155472da7621624458f
parentcab851c2f8c190bed93719ca8c712fdfcc3c7182
ls-tree: detect and error on --name-only --name-status

The --name-only and --name-status options are synonyms, but let's
detect and error if both are provided.

In addition let's add explicit --format tests for the combination of
these various options.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Teng Long <dyroneteng@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/ls-tree.c
t/t3103-ls-tree-misc.sh