1/*
2* Copyright (C) 2005 Junio C Hamano
3*/
4#ifndef DIFF_H
5#define DIFF_H
67
extern void diff_addremove(int addremove,
8unsigned mode,
9const unsigned char *sha1,
10const char *base,
11const char *path);
1213
extern void diff_change(unsigned mode1, unsigned mode2,
14const unsigned char *sha1,
15const unsigned char *sha2,
16const char *base, const char *path);
1718
extern void diff_helper_input(unsigned mode1,
19unsigned mode2,
20const unsigned char *sha1,
21const unsigned char *sha2,
22const char *path1,
23int status,
24int score,
25const char *path2);
2627
extern void diff_unmerge(const char *path);
2829
extern int diff_scoreopt_parse(const char *opt);
3031
#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);
3637
#define DIFF_DETECT_RENAME 1
38#define DIFF_DETECT_COPY 2
3940
extern void diffcore_rename(int rename_copy, int minimum_score);
4142
extern void diffcore_pickaxe(const char *needle);
43extern void diffcore_pathspec(const char **pathspec);
4445
extern int diff_queue_is_empty(void);
4647
extern void diff_flush(int output_style, int resolve_rename_copy);
4849
#endif /* DIFF_H */