path: root/builtin.h
diff options
authorClément Poulain <>2010-06-15 15:50:28 (GMT)
committerJunio C Hamano <>2010-06-18 19:57:21 (GMT)
commite5fba602e59292c8c383a7a587897b5f7cbd5c78 (patch)
tree6b75f9b3f9b22a4b93fce96b3b24eada655d2788 /builtin.h
parent573285e55265ccedab5507c47ebd4357f360093f (diff)
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 <> Signed-off-by: Diane Gasselin <> Signed-off-by: Axel Bonnet <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'builtin.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin.h b/builtin.h
index 5c887ef..5a1dba0 100644
--- a/builtin.h
+++ b/builtin.h
@@ -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);