]> gitweb.factorcode.org Git - factor.git/commitdiff
Added instructions on fetching replace objects for source history
authornomennescio <nomennescio@factorcode.org>
Mon, 21 Oct 2019 13:53:16 +0000 (15:53 +0200)
committerDoug Coleman <doug.coleman@gmail.com>
Sat, 7 Mar 2020 05:03:42 +0000 (23:03 -0600)
README.md

index 5901506db2779cf29fc6f4539c3a710387e591c1..f9f7fde4f7977dc1d0c4ef871ab129a906b8f4e0 100644 (file)
--- a/README.md
+++ b/README.md
@@ -127,6 +127,25 @@ The Factor source tree is organized as follows:
 * `misc/` - editor modes, icons, etc
 * `unmaintained/` - now at [factor-unmaintained](https://github.com/factor/factor-unmaintained)
 
+## Source History
+
+During Factor's lifetime, sourcecode has lived in many repositories. Unfortunately, the first import in Git did not keep history. History has been partially recreated from what could be salvaged. Due to the nature of Git, it's only possible to add history without disturbing upstream work, by using replace objects. These need to be manually fetched, or need to be explicitly added to your git remote configuration.
+
+Use:
+`git fetch origin 'refs/replace/*:refs/replace/*'`
+
+or add the following line to your configuration file
+
+```
+[remote "origin"]
+    url = ...
+    fetch = +refs/heads/*:refs/remotes/origin/*
+    ...
+    fetch = +refs/replace/*:refs/replace/*
+```
+
+Then subsequent fetches will automatically update any replace objects.
+
 ## Community
 
 Factor developers meet in the `#concatenative` channel on