<div dir="ltr">Init-repo was only intended to create shared repositories where the branch can be in a subdirectory.  I believe there are other commands to create a colocated-branch repository.  At least in Bazaar.  What you do in Breezy is up to you.  I don't think that it makes sense for a different storage format to cause different behaviour, so if you want init-repo to create a colocated-branch repository, it should be a different mode.<div><br></div><div>Aaron</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 1, 2019 at 10:09 AM Jelmer Vernooij <<a href="mailto:jelmer@jelmer.uk">jelmer@jelmer.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, Sep 01, 2019 at 09:26:20AM -0400, Aaron Bentley wrote:<br>
> But brz init-repo is documented to create a shared repository ("Create a<br>
> shared repository for branches to share storage space.").  If Git doesn't<br>
> support shared repositories, I'd expect this to fail.  Possibly it wouldn't<br>
> support --git at all.<br>
So to be more precise: a Git repository supports multiple branches in<br>
a repository, just *only* colocated.<br>
<br>
if 'init-repo' is only intended to create shared repositories where<br>
the branch can be in a subdirectory, then I believe we should rename<br>
it to prevent confusion.<br>
<br>
> Aaron<br>
> <br>
> On Sun, Sep 1, 2019 at 8:06 AM Jelmer Vernooij <<a href="mailto:jelmer@jelmer.uk" target="_blank">jelmer@jelmer.uk</a>> wrote:<br>
> <br>
> > On Sun, Sep 01, 2019 at 11:53:58AM +0100, Sam Bull wrote:<br>
> > > On Sat, 2019-08-31 at 22:39 +0000, Jelmer Vernooij wrote:<br>
> > > > Ahhh! Git doesn't support shared repositories, so the branch command<br>
> > would<br>
> > > > create a new repository in trunk as well.<br>
> > ><br>
> > > So the --git argument is a red-herring? It's a little disappointing that<br>
> > it<br>
> > > takes 10 seconds to create a new branch. But, I'd still rather have that<br>
> > delay<br>
> > > that be using Git's single directory checkouts (which make it rather<br>
> > annoying to<br>
> > > work on 2 different issues in parallel).<br>
> ><br>
> > The --git argument does create a repository, so it's not a red<br>
> > herring. What happens is:<br>
> ><br>
> > # this creates a git repository in blah/.git<br>
> > $ bzr init-repo --git blah<br>
> ><br>
> > # This ignores blah/.git, since git doesn't support shared<br>
> > # repositories. Instead, it creates a repository in<br>
> > # blah/branchname/.git<br>
> > $ bzr branch git://<a href="http://github.com/blah/blah" rel="noreferrer" target="_blank">github.com/blah/blah</a> blah/branchname<br>
> ><br>
> > Jelmer<br>
> ><br>
> ><br>
<br>
-- <br>
Jelmer Vernooij <<a href="mailto:jelmer@jelmer.uk" target="_blank">jelmer@jelmer.uk</a>><br>
PGP Key: <a href="https://www.jelmer.uk/D729A457.asc" rel="noreferrer" target="_blank">https://www.jelmer.uk/D729A457.asc</a><br>
</blockquote></div>