|
|
|
|
|
by anulman
3995 days ago
|
|
Did you consider leveraging the refdb to offer immutable primary keys? I had been hacking together a Kyoto Tycoon-backed implementation for a project (since dropped); our design exposed the ref id to the user (e.g. 'master', 'master/mhodgson', etc) and branch/merge as necessary. This way, our primary keys remained a constant refName that pointed to the HEAD of a commit chain, each of which referenced immutable commits/trees/blobjects. Although my days of libgit2 hacking are long past, I'm very curious if/how our design could have been improved; immutable pkeys were important for us as well. Github: https://github.com/anulman/libgit2/tree/kyoto/src/backends/k... |
|