Closed ComLock closed 5 years ago
Hmm one must take into account multirepoconnection. So perhaps an array of sources.
So, what are you looking for, like a connection.info()?
Yes. You could provide a function called info, but JS object can haz properties too. Not everything needs to be a function.
Sure, Any input on what it could it look like?
const connection = connect({branch: 'master'}); log.info(connection.branch); // --> 'master'
Having discussed this, there is actually no time spent here - since this "connection" is just a simple object. There are no pools etc.
I think this invalidates your initial problem?
Re-open if we are wrong
In order to (in theory) avoid wasting precious time reconnecting to a repo I pass the connection around.
To make sure I have the correct connection I would like to be able to inspect the connection.
Thus I propose that a connection have two properties: