You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bare repository, with no setting defined, we shouldn't write -> We actually do
Bare repository, with setting set to false, we shouldn't write -> We actually do
Non bare repository, with setting set to false, we shouldn't write -> We actually do
OK, so it looks like we just don't look at whether the repo is bare at all. Getting such information won't be pretty. And we'll have to access the repository's config from the refdb backend, eugh.
Moving should_write_reflog() out of refdb_fs.c into refs.c
Making the backend write to the reflog only when the passed in signature and logmessage aren't NULL?
This would put back the decision making into the refs.c file (making the backend dumber and then easier to implement for other kind of storage).
This would avoid having the refdb backend depend on the config backend.
I'm not too keen on having the frontend make the decisions atm. There will be backends which will be able to keep more reflogs than the filesystem one.
Activity
carlosmn commentedon Mar 14, 2014
In which direction do you mean? That we write reflogs on bare when we shouldn't or that we don't when we should?
nulltoken commentedon Mar 14, 2014
Bare repository, with no setting defined, we shouldn't write -> We actually do
Bare repository, with setting set to false, we shouldn't write -> We actually do
Non bare repository, with setting set to false, we shouldn't write -> We actually do
carlosmn commentedon Mar 14, 2014
OK, so it looks like we just don't look at whether the repo is bare at all. Getting such information won't be pretty. And we'll have to access the repository's config from the refdb backend, eugh.
nulltoken commentedon Mar 15, 2014
How about:
This would put back the decision making into the refs.c file (making the backend dumber and then easier to implement for other kind of storage).
This would avoid having the refdb backend depend on the config backend.
Thoughts?
carlosmn commentedon Mar 19, 2014
I'm not too keen on having the frontend make the decisions atm. There will be backends which will be able to keep more reflogs than the filesystem one.