summaryrefslogtreecommitdiff
path: root/builtin/ls-tree.c
diff options
context:
space:
mode:
authorLibravatar Karthik Nayak <karthik.188@gmail.com>2015-05-03 20:00:01 +0530
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-05-06 13:35:48 -0700
commit39e4ae388047bd7f6f3a4ad86ba5eba523dd0668 (patch)
treedf962960a6d1cb5f11a1fb4da8ecc5a1b03dd1a7 /builtin/ls-tree.c
parentcat-file: make the options mutually exclusive (diff)
downloadtgif-39e4ae388047bd7f6f3a4ad86ba5eba523dd0668.tar.xz
cat-file: teach cat-file a '--allow-unknown-type' option
'git cat-file' throws an error while trying to print the type or size of a broken/corrupt object. This is because these objects are usually of unknown types. Teach git cat-file a '--allow-unknown-type' option where it prints the type or size of a broken/corrupt object without throwing an error. Modify '-t' and '-s' options to call sha1_object_info_extended() directly to support the '--allow-unknown-type' option. Add documentation for 'cat-file --allow-unknown-type'. Helped-by: Junio C Hamano <gitster@pobox.com> Helped-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Karthik Nayak <karthik.188@gmail.com> cat-file: add documentation for '--allow-unknown-type' option. Signed-off-by: Karthik Nayak <karthik.188@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/ls-tree.c')
0 files changed, 0 insertions, 0 deletions