Thomas Koch wrote:
> Hi,
> I have a few things that I'd like to do with git-annex but that are hard 
> because git-annex does not expose internal plumbing commands. I intend to 
> start a list of such commands here with possible use cases:
> - calculate checksum of a file
> - doesAnnexHasChecksum?
> - doesAnnexHasFile?
>   Useful to deduplicate files from many old CD backups

git annex find --format can be used to get at this to some extent.
But I'd instead suggest to just add the files, let git-annex deduplicate
the data, which it does automatically, and if desired dedup the
filenames afterwards.

> - checksum to path
> - move file into annex
>   You already have an annexed file somewhere on the disk and just want to 
> move 
> it in the local annex without copying it

Sounds like the reinject command, I think?

> - find duplicates
>   It might happen that a file is put into an annex in multiple places. One 
> could try to find duplicate symlinks, but that's inefficient. As I 
> understand, 
> the git-annex data should allow a quick lookup of all symlinks pointing to a 
> particular checkum.

see shy jo

Attachment: signature.asc
Description: Digital signature

vcs-home mailing list

Reply via email to