THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Git Source Code Mirror - This is a publish-only repository and all pull requests are ignored. Please follow Documentation/SubmittingPatches procedure for any of your improvements.
git
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
892B

  1. #ifndef USERDIFF_H
  2. #define USERDIFF_H
  3. #include "notes-cache.h"
  4. struct index_state;
  5. struct repository;
  6. struct userdiff_funcname {
  7. const char *pattern;
  8. int cflags;
  9. };
  10. struct userdiff_driver {
  11. const char *name;
  12. const char *external;
  13. int binary;
  14. struct userdiff_funcname funcname;
  15. const char *word_regex;
  16. const char *textconv;
  17. struct notes_cache *textconv_cache;
  18. int textconv_want_cache;
  19. };
  20. int userdiff_config(const char *k, const char *v);
  21. struct userdiff_driver *userdiff_find_by_name(const char *name);
  22. struct userdiff_driver *userdiff_find_by_path(struct index_state *istate,
  23. const char *path);
  24. /*
  25. * Initialize any textconv-related fields in the driver and return it, or NULL
  26. * if it does not have textconv enabled at all.
  27. */
  28. struct userdiff_driver *userdiff_get_textconv(struct repository *r,
  29. struct userdiff_driver *driver);
  30. #endif /* USERDIFF */