RFC: branch -b should be switch --new?

John Arbash Meinel john at arbash-meinel.com
Sun Jul 19 01:08:36 BST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robert Collins wrote:
> Or possibly present as both.
> 
> I think though that 'branch -b' is awkward to remember, and the main
> point of this use case seems to be to switch with a new object.
> 
> For instance, in a loom I'd like switch --new to make a new thread. This
> is currently 'bzr create-thread', but perhaps that command could get
> deleted in favour of using the switch interface/branch -b interface. I
> imagine pipelines have a similar need.
> 
> -Rob

So the long form is "bzr switch --create-branch" the original idea was
"switch and branch" which was really meant as "branch and switch", but I
 felt putting the argument on switch worked better.

As for '--new', I think --create-branch is actually more descriptive and
accurate. --new is shorter, but if you want shorter, I'd prefer a short
arg, and I couldn't think of anything better than '-b'.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpiZAQACgkQJdeBCYSNAANoYQCglnj82t5U4niTbklzfIJNSMV7
B+cAnjraOzcdzuz5r5h/6WWLDbK6PUpl
=e2WD
-----END PGP SIGNATURE-----



More information about the bazaar mailing list