MCPcopy Index your code
hub / github.com/git/git / textconv_object

Function textconv_object

diff.c:7842–7864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7840}
7841
7842int textconv_object(struct repository *r,
7843 const char *path,
7844 unsigned mode,
7845 const struct object_id *oid,
7846 int oid_valid,
7847 char **buf,
7848 unsigned long *buf_size)
7849{
7850 struct diff_filespec *df;
7851 struct userdiff_driver *textconv;
7852
7853 df = alloc_filespec(path);
7854 fill_filespec(df, oid, oid_valid, mode);
7855 textconv = get_textconv(r, df);
7856 if (!textconv) {
7857 free_filespec(df);
7858 return 0;
7859 }
7860
7861 *buf_size = fill_textconv(r, textconv, df, buf);
7862 free_filespec(df);
7863 return 1;
7864}
7865
7866void setup_diff_pager(struct diff_options *opt)
7867{

Callers 6

fake_working_tree_commitFunction · 0.85
fill_origin_blobFunction · 0.85
setup_scoreboardFunction · 0.85
show_blob_objectFunction · 0.85
cat_one_fileFunction · 0.85
print_object_or_dieFunction · 0.85

Calls 5

alloc_filespecFunction · 0.85
fill_filespecFunction · 0.85
get_textconvFunction · 0.85
free_filespecFunction · 0.85
fill_textconvFunction · 0.85

Tested by

no test coverage detected