Thread (234 messages) flat view 234 messages, 5 authors, 2017-04-07

Re: [PATCH v4 14/15] files-backend: remove submodule_allowed from files_downcast()

From: Duy Nguyen <hidden>
Date: 2017-02-21 13:25:47

On Mon, Feb 20, 2017 at 7:11 PM, Michael Haggerty [off-list ref] wrote:
On 02/18/2017 02:33 PM, Nguyễn Thái Ngọc Duy wrote:
quoted
Since submodule or not is irrelevant to files-backend after the last
patch, remove the parameter from files_downcast() and kill
files_assert_main_repository().

PS. This implies that all ref operations are allowed for submodules. But
we may need to look more closely to see if that's really true...
I think you are jumping the gun here.

Even after your changes, there is still a significant difference between
the main repository and submodules: we have access to the object
database for the main repository, but not for submodules.
I did jump the gun for another reason: files-backend makes function
calls to the frontend, which unconditionally target the main ref store
(e.g. resolve_ref_unsafe, delete_ref...). Of course, because
store-aware api does not exist. My decision (off-list) to add
test-ref-store was the right call. I would not have seen these because
I was not (and still am not) familiar with files-backend.c enough to
see its dark corners.

files-backend.c is not all unicorn and rainbow :(
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help