2 * Copyright (C) 2005 Junio C Hamano
7 extern void diff_addremove(int addremove,
9 const unsigned char *sha1,
13 extern void diff_change(unsigned mode1, unsigned mode2,
14 const unsigned char *sha1,
15 const unsigned char *sha2,
16 const char *base, const char *path);
18 extern void diff_helper_input(unsigned mode1,
20 const unsigned char *sha1,
21 const unsigned char *sha2,
27 extern void diff_unmerge(const char *path);
29 extern int diff_scoreopt_parse(const char *opt);
31 #define DIFF_FORMAT_HUMAN 0
32 #define DIFF_FORMAT_MACHINE 1
33 #define DIFF_FORMAT_PATCH 2
34 #define DIFF_FORMAT_NO_OUTPUT 3
35 extern void diff_setup(int reverse);
37 #define DIFF_DETECT_RENAME 1
38 #define DIFF_DETECT_COPY 2
40 extern void diffcore_rename(int rename_copy, int minimum_score);
42 extern void diffcore_prune(void);
44 extern void diffcore_pickaxe(const char *needle);
45 extern void diffcore_pathspec(const char **pathspec);
47 extern int diff_queue_is_empty(void);
49 extern void diff_flush(int output_style, int resolve_rename_copy);