From: Jakub Narebski Date: Sun, 21 Sep 2008 17:04:08 GMT Subject: Re: Re* [RFC/PATCH] extend meaning of "--root" option to index comparisons Message-ID: In-Reply-To: <3665a1a00809210858r1c494d22p77b5e9964c06424e@mail.gmail.com> Anatol Pomozov wrote: > What about following algorithm. HEAD points to ref and ref is not > created yet. Additional check could be >  a) there are no other refs >  or/and b) object database is empty What about the case when you create _independent_ branch (additional root, i.e. parentless commit), like 'html', 'man' and 'todo' branches in git.git repository? Neither a) nor b) applies, and I don't consider such situation a bug. HEAD should be in proper symref format: "ref: refs/heads/". -- Jakub Narebski Warsaw, Poland ShadeHawk on #git