From: Junio C Hamano Date: Thu, 28 Apr 2016 17:41:12 GMT Subject: Re: [RFC PATCH 0/4] git_connect: add some flexibility Message-ID: In-Reply-To: <1461852759-28429-1-git-send-email-mh@glandium.org> Mike Hommey writes: > As you may be aware, I'm working on a git remote helper to access > mercurial repositories (https://github.com/glandium/git-cinnabar/). > > At the moment, a small part is written in C, relying on the git code > base, but eventually, there would be more C. > > As I want to get rid of the dependency on Mercurial itself, I'm planning > to implement the wire protocol parts in git-cinnabar. While all of the above sounds like a good thing to do, what I do not understand is why you need to even touch git_connect() at all, and we certainly do *not* want you to touch it to make its external interface unnecessarily ugly and complex with features that are only necessary if it needs to talk to non-git services. In other words, why can't this cinnabar thing live on the other side of transport API, just like Git transport itself does not know about cURL and HTTP when talking with https:// repositories?