From d88f9fdf8b2ccf65993bb977094ab9b2249635ee Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Wed, 11 Apr 2018 17:21:05 -0700 Subject: replace-object: move replace_map to object store The relationship between an object X and another object Y that replaces the object X is defined only within the scope of a single repository. The exception in reachability rule around these replacement objects is also local to a repository (i.e. if traversal from refs reaches X, then both X and Y are reachable and need to be kept from gc). Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- replace-object.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 replace-object.h (limited to 'replace-object.h') diff --git a/replace-object.h b/replace-object.h new file mode 100644 index 0000000000..f9a2b70eb8 --- /dev/null +++ b/replace-object.h @@ -0,0 +1,9 @@ +#ifndef REPLACE_OBJECT_H +#define REPLACE_OBJECT_H + +struct replace_object { + struct oidmap_entry original; + struct object_id replacement; +}; + +#endif /* REPLACE_OBJECT_H */ -- cgit v1.2.3