I would suggest refs/remotes/behdad.
This already should be the case if you use separate-remote. I
haven't run "clone --separate-remote" myself for a long time,
but the design was certainly to make it behave that way.
Specifically, map everything in refs/heads/ at remote to
refs/remotes/$origin/ with corresponding names, one-to-one.
I do not see much reason to change the mapping of master:origin
which is done for the traditional layout. The traditional
layout is not suitable for your workflow anyway, and that is why
you prefer separate-remote layout for your project, and I fully
agree it would suit you better.
These three are easily done for separate-remote layout but at
that point you would not want --all but more powerful --mirror
(or --update if you want to use that word), which goes the whole
nine yards of noticing disappearance of remote branch, making
matching deletion of local tracking branch, updating
.git/remotes, etc. I've muttered something similar in a nearby
thread; see below.
I would prefer this to be kept in contrib/; it feels like it is
filling rather very narrow need.
I muttered something less elaborate in the nearby thread.
Message-ID: <7vr6w78b4x.fsf@assigned-by-dhcp.cox.net>
Message-ID: <7v64dev88t.fsf@assigned-by-dhcp.cox.net>
The part that deals with manual configuration (the last point in
the first message, and the second in message its entirety) is
something your workflow would not need nor want to worry about,
but I think it is necessary for different ref namespace layouts
and different workflows. I think the automatable part (the
first two points in the "sensible thing to do" list in the first
message) is very relevant to what you talked about in your
message.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html