Added include_remotes = (request->data[1] & 0b10) flag to param_serve_pull_request()#76
Added include_remotes = (request->data[1] & 0b10) flag to param_serve_pull_request()#76kivkiv12345 wants to merge 1 commit intomasterfrom
include_remotes = (request->data[1] & 0b10) flag to param_serve_pull_request()#76Conversation
…rve_pull_request()`
|
Would it make more sense to have a param_pull, where it is possible to filter by node? Then setting the node to zero, would be the same as requesting params without remotes. But it is also possible to request a specific remote node in the request? |
|
Something similar to the following |
|
Well, that always works because you are explicitly defining which parameters to pull. What you have suggested is a method to pull_all, but with or without remotes. That would be a flag that sets node to either zero, or anything else. What i am suggesting, if you need this, is to instead of a flag, add a field, which sets the desired node. so param_pull_all(host, node) so param_pull_all(host, 0) would be all local params |
I need to think this through tomorrow, to ensure that the flag remains as backwards compatible as possible.