2009-12-25 08:30:51 +00:00
|
|
|
#ifndef RESOLVE_UNDO_H
|
|
|
|
#define RESOLVE_UNDO_H
|
|
|
|
|
2023-04-11 07:42:03 +00:00
|
|
|
struct cache_entry;
|
|
|
|
struct index_state;
|
|
|
|
struct pathspec;
|
|
|
|
struct string_list;
|
|
|
|
|
2023-04-22 20:17:20 +00:00
|
|
|
#include "hash-ll.h"
|
2018-08-15 17:54:05 +00:00
|
|
|
|
2009-12-25 08:30:51 +00:00
|
|
|
struct resolve_undo_info {
|
|
|
|
unsigned int mode[3];
|
2018-03-12 02:27:25 +00:00
|
|
|
struct object_id oid[3];
|
2009-12-25 08:30:51 +00:00
|
|
|
};
|
|
|
|
|
2019-04-29 08:28:14 +00:00
|
|
|
void record_resolve_undo(struct index_state *, struct cache_entry *);
|
|
|
|
void resolve_undo_write(struct strbuf *, struct string_list *);
|
|
|
|
struct string_list *resolve_undo_read(const char *, unsigned long);
|
|
|
|
void resolve_undo_clear_index(struct index_state *);
|
2023-07-31 22:44:09 +00:00
|
|
|
int unmerge_index_entry(struct index_state *, const char *, struct resolve_undo_info *, unsigned);
|
|
|
|
void unmerge_index(struct index_state *, const struct pathspec *, unsigned);
|
2009-12-25 08:30:51 +00:00
|
|
|
|
|
|
|
#endif
|