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
Support for multiple collections in a git repository #62
Comments
This would be particularly useful when migrating from calypso installations that support this. The per-collection configuration might be better stored in Vdir-style plain files (as currently spec'd there for color and description). |
Xandikos has gained support for ".xandikos" files since this issue was filed, as an alternative to storing settings in the xandikos section in .git/config |
The support for .xandikos files definitely makes this easier. I'm looking into what needs to be done to address this, and my current plan would be:
Should I expect any trouble for creating multiple GitStore objects around the same directory (which would be a consequence of the above)? (That might be a similar question as "Should I expect any trouble if someone pushes to my repository while it's running?".) |
I think it makes sense to just add support to the existing Store class - like you say, it could just have a an optional subpath argument that defaults to the root. There isn't much value in subclassing I think, it just adds complexity. How would you make these stores detectable in the listing of collections? Right now we do very basic url to path translation; you will probably have to actually traverse the filesystem. |
For various reasons, it would be useful to store multiple collections in a single Git store.
This requires per-collection configuration to be moved to a non-.git/config file, per https://github.com/jelmer/xandikos/blob/master/notes/collection-config.rst
The text was updated successfully, but these errors were encountered: