textconv: support for cat_file
commite5fba602e59292c8c383a7a587897b5f7cbd5c78
authorClément Poulain <clement.poulain@ensimag.imag.fr>
Tue, 15 Jun 2010 15:50:28 +0000 (15 17:50 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 18 Jun 2010 19:57:21 +0000 (18 12:57 -0700)
tree6b75f9b3f9b22a4b93fce96b3b24eada655d2788
parent573285e55265ccedab5507c47ebd4357f360093f
textconv: support for cat_file

Make the textconv_object function public, and add --textconv option to cat-file
to perform conversion on blob objects. Using --textconv implies that we are
working on a blob.
As files drivers need to be initialized, a new config is required in addition
to git_default_config. Therefore git_cat_file_config() is introduced

Signed-off-by: Clément Poulain <clement.poulain@ensimag.imag.fr>
Signed-off-by: Diane Gasselin <diane.gasselin@ensimag.imag.fr>
Signed-off-by: Axel Bonnet <axel.bonnet@ensimag.imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin.h
builtin/blame.c
builtin/cat-file.c