From: Lars Hjemli Date: Wed, 09 May 2007 09:07:32 GMT Subject: Re: [PATCH] checkout: allow full refnames for local branches Message-ID: <8c5c35580705090207y2979aaa5u7ce9de5fa1dfe658@mail.gmail.com> In-Reply-To: <7v7iriwfeu.fsf@assigned-by-dhcp.cox.net> On 5/9/07, Junio C Hamano wrote: > Lars Hjemli writes: > > > This teaches git-checkout to strip the prefix 'refs/heads/' from the > > supplied argument > > Why is this necessary, may I ask? > I'm playing around with a gui frontend, and there I use git-for-each-ref to obtain possible arguments for git-checkout. That's how I discovered the 'problem', and solved it by stripping 'refs/heads/' in my frontend. But then I thought it would be nice if 'git-checkout' did the stripping on my behalf, since this might bite others too :) -- larsh