Thread (7 messages) flat view 7 messages, 5 authors, 2016-06-15

Re: Bug: "git checkout -b" should be allowed in empty repo

From: Jeff King <hidden>
Date: 2016-06-15 22:53:00

Possibly related (same subject, not in this thread)

On Mon, Feb 06, 2012 at 09:51:56AM +0100, Michael Haggerty wrote:
On 02/06/2012 06:06 AM, Jeff King wrote:
quoted
I don't recall seeing anybody complain seriously about it in the past
six years of git's existence.
In the real-world situation when I noticed this bug, I wasn't trying to
use a nonstandard name for "master".  What I was doing is importing a
snapshot of some code from another non-git project onto a "vendor
branch", which I knew I would later want to merge into my own work
(which I planned to do on master).
Thanks, that sounds like a very reasonable use case. I stand corrected.

(For some reason I thought you ran across it accidentally while mucking
with "--edit-description", since were talking about that an unborn
branches in a nearby thread).

-Peff

PS I probably would have done it as:

     git init vendor
     cd vendor
     import import import
     cd ..

     git init project
     cd project
     git fetch ../vendor master:vendor

   but I don't think there's anything wrong with your approach (in fact,
   it's slightly more efficient).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help