Re: Notes from the DebConf Source Format BoF
On Fri, Aug 13, 2010 at 11:54:07PM +0100, Ben Hutchings wrote:
> On Sat, 2010-08-14 at 00:10 +0200, Adam Borowski wrote:
> > On Fri, Aug 13, 2010 at 08:39:35AM +0200, Josef Spillner wrote:
> > > Am Donnerstag, 12. August 2010, 16:36:56 schrieb Ian Jackson:
> > > > This is easy: you just publish two trees, rather than two branches in
> > > > the same tree. (It's a shame that there isn't a syntax for "git
> > > > clone" which checks out a particular branch.)
> > >
> > > The --branch option to git-clone is going to celebrate its birthday in about
> > > two weeks.
> > > http://git.kernel.org/?p=git/git.git;a=commitdiff;h=7a4ee28f41270bf032d0dd0bfb17f601b9b3971a
> >
> > That's great!
> > Now we need a syntax to tuck it into Vcs-Git: in control files.
> >
> > Does Vcs-Foo accept unescaped spaces in the URLs? If not, we may make it
> > simply:
> > Vcs-Git: git://foo.bar.org/meow debian
>
> There is a convention for git of adding the branch name as a fragment
> identifier, e.g.:
>
> git://foo.bar.org/meow#debian
At least, neither git clone, merge nor fetch understand that syntax.
But for tools that can split that URL and specify --branch, either space and
hash would work. I never heard of that convention before, but if there are
any people who already use hash, that makes it better than space which I
invented just in the previous mail.
--
1KB // Microsoft corollary to Hanlon's razor:
// Never attribute to stupidity what can be
// adequately explained by malice.
Reply to: