]>
Commit | Line | Data |
---|---|---|
be3cfa85 JH |
1 | /* |
2 | * Copyright (C) 2005 Junio C Hamano | |
3 | */ | |
86436c28 JH |
4 | #ifndef DIFF_H |
5 | #define DIFF_H | |
6 | ||
77eb2720 JH |
7 | extern void diff_addremove(int addremove, |
8 | unsigned mode, | |
9 | const unsigned char *sha1, | |
10 | const char *base, | |
11 | const char *path); | |
12 | ||
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); | |
17 | ||
b6d8f309 JH |
18 | extern void diff_helper_input(unsigned mode1, |
19 | unsigned mode2, | |
20 | const unsigned char *sha1, | |
21 | const unsigned char *sha2, | |
22 | const char *path1, | |
23 | int status, | |
24 | int score, | |
25 | const char *path2); | |
81e50eab | 26 | |
77eb2720 JH |
27 | extern void diff_unmerge(const char *path); |
28 | ||
57fe64a4 JH |
29 | extern int diff_scoreopt_parse(const char *opt); |
30 | ||
19feebc8 JH |
31 | #define DIFF_SETUP_REVERSE 1 |
32 | extern void diff_setup(int flags); | |
86436c28 | 33 | |
6b14d7fa JH |
34 | #define DIFF_DETECT_RENAME 1 |
35 | #define DIFF_DETECT_COPY 2 | |
36 | ||
37 | extern void diffcore_rename(int rename_copy, int minimum_score); | |
38 | ||
367cec1c JH |
39 | #define DIFF_PICKAXE_ALL 1 |
40 | extern void diffcore_pickaxe(const char *needle, int opts); | |
41 | ||
6b14d7fa | 42 | extern void diffcore_pathspec(const char **pathspec); |
38c6f780 JH |
43 | |
44 | extern int diff_queue_is_empty(void); | |
45 | ||
19feebc8 JH |
46 | #define DIFF_FORMAT_HUMAN 0 |
47 | #define DIFF_FORMAT_MACHINE 1 | |
48 | #define DIFF_FORMAT_PATCH 2 | |
49 | #define DIFF_FORMAT_NO_OUTPUT 3 | |
50 | ||
b6d8f309 | 51 | extern void diff_flush(int output_style, int resolve_rename_copy); |
86436c28 JH |
52 | |
53 | #endif /* DIFF_H */ |