Re: Are these bugs?
- From
Stephan Beyer <s-beyer@gmx.net>
- Date
- Aug 28, 2008, 01:04 UTC
- Message-ID
- <20080828010458.GE12354@leksak.fem-net>
- In-Reply-To
- <7v1w0akolk.fsf@gitster.siamese.dyndns.org>
Hi,
Junio C Hamano wrote:
Show 6 quoted lines
> "Jay Soffian" <jaysoffian@gmail.com> writes: > > > I understand why "git reset" failed, but at best the error message is > > confusing to a new user. > > This is in "patches welcome" category.
<noise> I sometimes wondered if "git init" should create a dummy commit with empty tree, empty commit message or something like that and set refs/heads/master to that and HEAD to master. But I always said to myself that this is a stupid idea for several reasons, i.e. backwards compatibility, or: if the dummy commit is to be ignored (i.e. will not become parent of the first commit), then it does not really help at all in decreasing complexity. So I rejected this thought, but now it came back. ;-)
A backwards-compatibily-breaking dummy commit would also help rebasing onto the dummy (replacing the first real commit). But I still think it's stupid. </noise>
So, for a patch, is it sane to just remove/clear the index if get_sha1("HEAD", sha1) fails?
Regards, Stephan
-- Stephan Beyer <s-beyer@gmx.net>, PGP 0x6EDDD207FCC5040F