Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow amending existing manifest #16

Closed
labaneilers opened this issue May 21, 2014 · 1 comment
Closed

Allow amending existing manifest #16

labaneilers opened this issue May 21, 2014 · 1 comment

Comments

@labaneilers
Copy link
Owner

Allow, when passing a list of files to process, updating an existing manifest (instead of deleting it and starting from scratch). We could load the manifest into memory, update it, and rewrite it. We could also optimize so as not write files that already exist with correct hashcode, or look at timestamps to avoid even recalculating hashcodes at all (also see issue #18).

We'll need to add functionality to parse a manifest to the manifest format adapters. I'm not sure how this will work with non-self describing adapters, which may have data written from plugins; perhaps we'll just include a list of extra fields, which can be accessed by index. The same plugins would have to be loaded both times.

@labaneilers
Copy link
Owner Author

Document with an example of piping in and using amend
find . -name *.png | hashly ./ --amend
probably more useful with something like svn status, or find -mtime:
find . -mtime -1 -type f | hashly ./ --amend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant