diff options
author | Clément Poulain <clement.poulain@ensimag.imag.fr> | 2010-06-15 17:50:28 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-06-18 12:57:21 -0700 |
commit | e5fba602e59292c8c383a7a587897b5f7cbd5c78 (patch) | |
tree | 6b75f9b3f9b22a4b93fce96b3b24eada655d2788 /builtin.h | |
parent | 573285e55265ccedab5507c47ebd4357f360093f (diff) | |
download | git-e5fba602e59292c8c383a7a587897b5f7cbd5c78.tar.gz |
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>
Diffstat (limited to 'builtin.h')
-rw-r--r-- | builtin.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -36,6 +36,8 @@ void finish_copy_notes_for_rewrite(struct notes_rewrite_cfg *c); extern int check_pager_config(const char *cmd); +extern int textconv_object(const char *path, const unsigned char *sha1, char **buf, unsigned long *buf_size); + extern int cmd_add(int argc, const char **argv, const char *prefix); extern int cmd_annotate(int argc, const char **argv, const char *prefix); extern int cmd_apply(int argc, const char **argv, const char *prefix); |