git-apply: parse the diff headers (both traditional and new)
[git/git.git] / diff.h
CommitLineData
be3cfa85
JH
1/*
2 * Copyright (C) 2005 Junio C Hamano
3 */
86436c28
JH
4#ifndef DIFF_H
5#define DIFF_H
6
77eb2720
JH
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
81e50eab
JH
18extern void diff_guif(unsigned mode1,
19 unsigned mode2,
20 const unsigned char *sha1,
21 const unsigned char *sha2,
22 const char *path1,
23 const char *path2);
24
77eb2720
JH
25extern void diff_unmerge(const char *path);
26
57fe64a4
JH
27extern int diff_scoreopt_parse(const char *opt);
28
6b14d7fa
JH
29#define DIFF_FORMAT_HUMAN 0
30#define DIFF_FORMAT_MACHINE 1
31#define DIFF_FORMAT_PATCH 2
32#define DIFF_FORMAT_NO_OUTPUT 3
33extern void diff_setup(int reverse);
86436c28 34
6b14d7fa
JH
35#define DIFF_DETECT_RENAME 1
36#define DIFF_DETECT_COPY 2
37
38extern void diffcore_rename(int rename_copy, int minimum_score);
39
40extern void diffcore_prune(void);
41
42extern void diffcore_pickaxe(const char *needle);
43extern void diffcore_pathspec(const char **pathspec);
38c6f780
JH
44
45extern int diff_queue_is_empty(void);
46
6b14d7fa 47extern void diff_flush(int output_style);
86436c28
JH
48
49#endif /* DIFF_H */