dolt
dolt copied to clipboard
XDG BaseDir support
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
by default, move ~/.dolt/ to ~/.config/dolt/
This would be a messy change for us me thinks. But thanks for the report. Will keep it open.
We can consider this for dolt 1.0, which will also include other breaking changes. Leaving this open to document the fact that we don't conform to this spec right now.
Well, seems like it didn't make it into 1.0. Oh well.
But I really do not understand, what can be messy about this. You are not required to completely axe ~/.dolt, you can still fallback to it. Just prefer ~/.config/dolt[^1] if ~/.dolt does not exist.
This is what git does: https://github.com/git/git/blob/3857aae53f3633b7de63ad640737c657387ae0c6/config.c#L2019-L2025
[^1]: Well, to be pedantic, it's more like if $XDG_CONFIG_HOME then $XDG_CONFIG_HOME/dolt else ~/.config/dolt, but you get the idea.