X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=diffcore.h;h=eb618b1ec00113dabcd5231f141f82e1cdfdca46;hb=2db9b49c6c19d3edaa3c20147f7d9f29588433df;hp=990dec50f1e6ea4649800c7778fadb78883d5ea4;hpb=d8c3d03a0b7f10977dd508a5a965a417b7f1b065;p=git.git diff --git a/diffcore.h b/diffcore.h index 990dec50f..eb618b1ec 100644 --- a/diffcore.h +++ b/diffcore.h @@ -27,6 +27,7 @@ struct diff_filespec { char *path; void *data; void *cnt_data; + const char *funcname_pattern_ident; unsigned long size; int xfrm_flags; /* for use by the xfrm */ unsigned short mode; /* file mode */ @@ -37,6 +38,8 @@ struct diff_filespec { #define DIFF_FILE_VALID(spec) (((spec)->mode) != 0) unsigned should_free : 1; /* data should be free()'ed */ unsigned should_munmap : 1; /* data should be munmap()'ed */ + unsigned checked_attr : 1; + unsigned is_binary : 1; /* data should be considered "binary" */ }; extern struct diff_filespec *alloc_filespec(const char *); @@ -45,6 +48,8 @@ extern void fill_filespec(struct diff_filespec *, const unsigned char *, extern int diff_populate_filespec(struct diff_filespec *, int); extern void diff_free_filespec_data(struct diff_filespec *); +extern void diff_free_filespec_blob(struct diff_filespec *); +extern int diff_filespec_is_binary(struct diff_filespec *); struct diff_filepair { struct diff_filespec *one;