git-apply --stat: limit lines to 79 characters
[git.git] / diff.h
blob0f1ed5877a9151bfd1b8146f949900eb0831248a
1 /*
2 * Copyright (C) 2005 Junio C Hamano
3 */
4 #ifndef DIFF_H
5 #define DIFF_H
7 extern void diff_addremove(int addremove,
8 unsigned mode,
9 const unsigned char *sha1,
10 const char *base,
11 const char *path);
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,
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);
27 extern void diff_unmerge(const char *path);
29 extern int diff_scoreopt_parse(const char *opt);
31 #define DIFF_SETUP_REVERSE 1
32 #define DIFF_SETUP_USE_CACHE 2
33 #define DIFF_SETUP_USE_SIZE_CACHE 4
34 extern void diff_setup(int flags);
36 #define DIFF_DETECT_RENAME 1
37 #define DIFF_DETECT_COPY 2
39 extern void diffcore_rename(int rename_copy, int minimum_score);
41 #define DIFF_PICKAXE_ALL 1
42 extern void diffcore_pickaxe(const char *needle, int opts);
44 extern void diffcore_pathspec(const char **pathspec);
46 extern void diffcore_order(const char *orderfile);
48 extern void diffcore_break(int max_score);
50 extern void diffcore_std(const char **paths,
51 int detect_rename, int rename_score,
52 const char *pickaxe, int pickaxe_opts,
53 int break_opt,
54 const char *orderfile);
56 extern int diff_queue_is_empty(void);
58 #define DIFF_FORMAT_HUMAN 0
59 #define DIFF_FORMAT_MACHINE 1
60 #define DIFF_FORMAT_PATCH 2
61 #define DIFF_FORMAT_NO_OUTPUT 3
63 extern void diff_flush(int output_style, int resolve_rename_copy);
65 #endif /* DIFF_H */