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

Add directory metadata #347

Merged
merged 1 commit into from
Apr 7, 2016
Merged

Add directory metadata #347

merged 1 commit into from
Apr 7, 2016

Conversation

talex5
Copy link
Contributor

@talex5 talex5 commented Apr 6, 2016

A Node implementation can now expose additional metadata for each content item. The Git backend uses this to give the type of the file (normal, executable or symlink). This information is stored in the tree object, not the blob, so changing the content type doesn't work well.

Currently, this is only exposed via the private interfaces (not Irmin.BC/VIEW).


module type S = sig

include Ir_hum.S
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use private Ir_* interfaces in the public interface. That could break linking.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. Fixed.

@samoht
Copy link
Member

samoht commented Apr 7, 2016

Would it make sense to add some tests for the metadata? As we don't really expose them I'm not sure what we can test that easily.

A Node implementation can now expose additional metadata for each
content item. The Git backend uses this to give the type of the file
(normal, executable or symlink).

Currently, this is only exposed via the private interfaces (not
Irmin.BC).
@samoht samoht merged commit 4ec7400 into mirage:master Apr 7, 2016
@samoht
Copy link
Member

samoht commented Apr 7, 2016

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants