Hi, Is there any way I can move or copy file content of older version without doing checkout to that version, by passing commit hash as parameter in move command itself?

Thank you

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.

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
Comments on this page are closed.