summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar https://www.google.com/accounts/o8/id?id=AItOawmp_51DcIT2sqrOhtg7LgCj2Pyaa5ujxTI <Ian@web>2014-07-23 23:38:55 +0000
committerGravatar admin <admin@branchable.com>2014-07-23 23:38:55 +0000
commitde268ee61d11475d91c2b0f6c001798cfb8dfd53 (patch)
tree82c17db8bbb01c33a9054c278ee4403e4dd77758
parent75beac8347a1616800ef2d3c3bec0b80dcc6570f (diff)
-rw-r--r--doc/forum/local_subtree_and_broken_symlinks.mdwn21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/forum/local_subtree_and_broken_symlinks.mdwn b/doc/forum/local_subtree_and_broken_symlinks.mdwn
new file mode 100644
index 000000000..de6dd6e49
--- /dev/null
+++ b/doc/forum/local_subtree_and_broken_symlinks.mdwn
@@ -0,0 +1,21 @@
+Here's a simple example on a repository with three branches, where we'll be adding images-annex as a subtree into master.
+
+ $ git branch
+ git-annex
+ images-annex
+ * master
+ $ git subtree add --squash --prefix=images/ images-annex
+ Added dir 'images'
+ $ ls
+ FILE_A FILE_B images/
+
+...checkout images-annex, make changes, commit...
+
+ $ git checkout master
+ $ git subtree pull --squash --prefix=images/ . images-annex
+ From .
+ * branch images-annex -> FETCH_HEAD
+ Merge made by the 'recursive' strategy.
+ ...(files created/modified/etc)
+
+I have tried a few different methods for merging the subtree in and so far have not been able to keep git-annex links up to date. Running `git-annex fix .` does what it's supposed to but then git sees everything as modified. Is this entirely the expected behavior because of the --prefix? I have not used subtrees much before but the model appears to be very helpful for what I'm trying to do.