Recent comments posted to this site:

Yes, I think that add -all option is the right approach for this. Seems unlikely you'd have some files' hashes handy without having them checked out, but operating on all content makes sense.

That page discusses some problems implementing it for some commands, but should not pose a problem for move. It would also be possible to support get and copy, except --auto couldn't be used with --all. Even fsck could support it.

Comment by http://joeyh.name/ Tue May 15 17:00:10 2012
I had a similiar question in forum/new_microfeatures/. I would like to fetch/copy all the annexed content from a repo, be it on the current branch, another branch, or corresponds to an old version of a file. A command like "git annex copy --all --from=source [path]" would then ensure I have access to all the content I need even if I have later no longer access to source. Sure I could use rsync.
Won't git itself be fixed on this issue? It was on my plans to look into that, however I don't know how difficult it will be.

What about Cygwin? It emulates POSIX fairly well under Windows (including signals, forking, fs (also things like /dev/null, /proc), unix file permissions), has all standard gnu utilities. It also emulates symlinks, but they are unfortunately incompatible with NTFS symlinks introduced in Vista due to some stupid restrictions on Windows.

If git-annex could be modified to not require symlinks to work, the it would be a pretty neat solution (and you get a real shell, not some command.com on drugs (aka cmd.exe))

Ok. This helped me a lot. Thank you
rsync over ssh is used to transfer file contents between repositories. (You can use the -d option to see the commands git-annex runs.)
Comment by http://joeyh.name/ Thu May 10 19:17:22 2012
Sorry if I am not clear. Actually i meant to ask, if i have 2 git repositories which are not special remotes and I am transferring annexed file content between these repositories using git annex command (move or copy) then, which protocol it uses to transfer content? Is it uses git-send-pack git-recieve-pack or some other protocols.
git-annex doesn't transfer git content between git repositories. You use git for that. Well, git-annex sync can run a few git commands for you to do it.
Comment by http://joeyh.name/ Thu May 10 18:51:56 2012
Thanks, Is git annex is using same protocols as normal git to transfer content between normal git repositories?
Some other protocols such as S3 for special remotes.
Comment by http://joeyh.name/ Thu May 10 18:18:01 2012
Comments on this page are closed.