| 7840 | } |
| 7841 | |
| 7842 | int 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 | |
| 7866 | void setup_diff_pager(struct diff_options *opt) |
| 7867 | { |
no test coverage detected