From: Josef Weidendorfer Date: Thu, 10 Nov 2005 23:56:54 GMT Subject: Re: [PATCH] cg-pull to stop treating "master" specially, fix fetch_local for .git/HEAD Message-ID: <200511110056.54476.Josef.Weidendorfer@gmx.de> In-Reply-To: <20051110234029.GE30496@pasky.or.cz> On Friday 11 November 2005 00:40, Petr Baudis wrote: > Dear diary, on Fri, Nov 11, 2005 at 12:26:18AM CET, I got a letter > where Josef Weidendorfer said that... > > On Tuesday 23 August 2005 23:33, Pavel Roskin wrote: > > > Hello! > > > > > > This patch changes cg-pull so that if the branch is not specified, it > > > takes origin's .git/HEAD without first trying .git/refs/heads/master. > > > This removes preferential treatment of the "master" branch, allowing the > > > upstream to use another name for the default branch. To get the master > > > branch, users would have to append "#master" to the URL. > ... > > Or am I missing something here? > > That this is from 23 August and this change was in Cogito for several > major releases and noone ever complained. ;-) You catched me ;-) Still I think my reasoning holds: cg-clone is also used locally, thus cloning a repository on which you probably are working on, too. If I want to branch off from master, I can use cg-clone to start a new development branch. I suppose this is the suggested Cogito way, from the README; and it makes Cogitos usage so simple, even with multiple development branches: by using a cloned repository for each branch. Of course, a Git user would use "git branch ...", and switch between branches inside of one repository. Josef