aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar CandyAngel <CandyAngel@web>2015-07-15 10:20:55 +0000
committerGravatar admin <admin@branchable.com>2015-07-15 10:20:55 +0000
commite20a3280da00c953997bf5c2b1e865e0e0e85133 (patch)
tree92f8c07cae89ae20caa312908d7e695f2849f84a
parent45693198d091719cc67312d7714914667913f08f (diff)
Added a comment
-rw-r--r--doc/todo/transfer_between_git-annexes/comment_2_2a494355a114a3df7ff0b35aa12ed10d._comment13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/todo/transfer_between_git-annexes/comment_2_2a494355a114a3df7ff0b35aa12ed10d._comment b/doc/todo/transfer_between_git-annexes/comment_2_2a494355a114a3df7ff0b35aa12ed10d._comment
new file mode 100644
index 000000000..e81266a7d
--- /dev/null
+++ b/doc/todo/transfer_between_git-annexes/comment_2_2a494355a114a3df7ff0b35aa12ed10d._comment
@@ -0,0 +1,13 @@
+[[!comment format=mdwn
+ username="CandyAngel"
+ subject="comment 2"
+ date="2015-07-15T10:20:55Z"
+ content="""
+Been thinking about this as I am getting close to needing it, but would like some advice.
+
+My current plan is to copy the symlink to the target annex, add it to the index (fix it?), copy the source file from $source/.git/annex/objects to $target/.git/annex/tmp, then use 'reinject $target/.git/annex/tmp/$keyed_file $path_to_symlink'.
+
+As far as I can tell, this is safest way (uses mostly git-annex) to transfer a file between annexes. However, when transferring a directory of files, this will end up with 1 commit per file on the git-annex branch, which may be a problem.
+
+Is there any easy way to make this \"atomic\", so that git-annex will only get a commit if everything went okay and if not, revert any changes to $target? Am I looking at 'git stash', recording the master/git-annex references before the move and resetting to them in case of an error or rebasing(fixup) git-annex on success?
+"""]]