2008-07-09 16:58:57 +04:00
|
|
|
#ifndef RERERE_H
|
|
|
|
#define RERERE_H
|
|
|
|
|
2008-07-21 22:03:49 +04:00
|
|
|
#include "string-list.h"
|
2008-07-09 16:58:57 +04:00
|
|
|
|
2013-07-14 12:35:40 +04:00
|
|
|
struct pathspec;
|
|
|
|
|
2009-12-04 11:20:48 +03:00
|
|
|
#define RERERE_AUTOUPDATE 01
|
|
|
|
#define RERERE_NOAUTOUPDATE 02
|
|
|
|
|
2011-02-16 13:47:44 +03:00
|
|
|
/*
|
|
|
|
* Marks paths that have been hand-resolved and added to the
|
|
|
|
* index. Set in the util field of such paths after calling
|
|
|
|
* rerere_remaining.
|
|
|
|
*/
|
|
|
|
extern void *RERERE_RESOLVED;
|
|
|
|
|
2009-12-04 11:20:48 +03:00
|
|
|
extern int setup_rerere(struct string_list *, int);
|
|
|
|
extern int rerere(int);
|
2009-02-15 01:21:04 +03:00
|
|
|
extern const char *rerere_path(const char *hex, const char *file);
|
2013-07-14 12:35:40 +04:00
|
|
|
extern int rerere_forget(struct pathspec *);
|
2011-02-16 13:47:44 +03:00
|
|
|
extern int rerere_remaining(struct string_list *);
|
2011-05-08 23:55:34 +04:00
|
|
|
extern void rerere_clear(struct string_list *);
|
|
|
|
extern void rerere_gc(struct string_list *);
|
2008-07-09 16:58:57 +04:00
|
|
|
|
2009-12-04 11:20:48 +03:00
|
|
|
#define OPT_RERERE_AUTOUPDATE(v) OPT_UYN(0, "rerere-autoupdate", (v), \
|
2014-09-15 02:40:53 +04:00
|
|
|
N_("update the index with reused conflict resolution if possible"))
|
2009-12-04 11:20:48 +03:00
|
|
|
|
2008-07-09 16:58:57 +04:00
|
|
|
#endif
|