Recent comments posted to this site:
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.
Comment by
Tue May 15 07:59:57 2012
—
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.
Comment by
Tue May 15 07:36:25 2012
— 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))
Comment by
Tue May 15 00:14:08 2012
—
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
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.
Comment by
Thu May 10 19:13:48 2012
—
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
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?
Comment by
Thu May 10 18:48:40 2012
—
Some other protocols such as S3 for special remotes.
Comment by
Thu May 10 18:18:01 2012
—
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 supportget
andcopy
, except--auto
couldn't be used with--all
. Evenfsck
could support it.