Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-04-12 03:21:05 +0300
committerJunio C Hamano <gitster@pobox.com>2018-04-12 05:38:56 +0300
commitd88f9fdf8b2ccf65993bb977094ab9b2249635ee (patch)
treef3375d0cd21b83cce26f95557edf89c52438dd23 /replace-object.h
parentf37b9bc00ca3cb9a22c4d5da564eb271ba13c109 (diff)
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 <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'replace-object.h')
-rw-r--r--replace-object.h9
1 files changed, 9 insertions, 0 deletions
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 */