0d1f9ae347fdaf9970a80ccc47114b474dafa35d
1/*
2 * Copyright (C) 2005 Junio C Hamano
3 */
4#ifndef DIFF_H
5#define DIFF_H
6
7extern void diff_addremove(int addremove,
8 unsigned mode,
9 const unsigned char *sha1,
10 const char *base,
11 const char *path);
12
13extern 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
18extern 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);
26
27extern void diff_unmerge(const char *path);
28
29extern int diff_scoreopt_parse(const char *opt);
30
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
35extern void diff_setup(int reverse);
36
37#define DIFF_DETECT_RENAME 1
38#define DIFF_DETECT_COPY 2
39
40extern void diffcore_rename(int rename_copy, int minimum_score);
41
42extern void diffcore_pickaxe(const char *needle);
43extern void diffcore_pathspec(const char **pathspec);
44
45extern int diff_queue_is_empty(void);
46
47extern void diff_flush(int output_style, int resolve_rename_copy);
48
49#endif /* DIFF_H */