2009-12-25 16:30:51 +08:00
|
|
|
#ifndef RESOLVE_UNDO_H
|
|
|
|
#define RESOLVE_UNDO_H
|
|
|
|
|
2023-04-11 15:42:03 +08:00
|
|
|
struct cache_entry;
|
|
|
|
struct index_state;
|
|
|
|
struct pathspec;
|
|
|
|
struct string_list;
|
|
|
|
|
2024-06-14 14:50:32 +08:00
|
|
|
#include "hash.h"
|
2018-08-16 01:54:05 +08:00
|
|
|
|
2009-12-25 16:30:51 +08:00
|
|
|
struct resolve_undo_info {
|
|
|
|
unsigned int mode[3];
|
2018-03-12 10:27:25 +08:00
|
|
|
struct object_id oid[3];
|
2009-12-25 16:30:51 +08:00
|
|
|
};
|
|
|
|
|
2019-04-29 16:28:14 +08: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-08-01 06:44:09 +08: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 16:30:51 +08:00
|
|
|
|
|
|
|
#endif
|