Re: What should "git submodule summary" give before an initial commit?
- From
Sverre Rabbelier <srabbelier@gmail.com>
- Date
- Mar 4, 2010, 06:36 UTC
- Message-ID
- <fabb9a1e1003032236x59a781b8ne0266877db25d001@mail.gmail.com>
- In-Reply-To
- <7vfx4gfvwv.fsf@alter.siamese.dyndns.org>
Heya,
On Thu, Mar 4, 2010 at 07:22, Junio C Hamano <gitster@pobox.com> wrote:
> I think "git reset HEAD" _should_ fail, but on the other hand, "git reset" > and "git reset paths..." would be Ok before HEAD points at a commit.
Yes, that's what I came up with after sending my email, commands that _default_ to HEAD as revision should instead default to an empty commit when there is no HEAD yet. Perhaps something we can add to parse_opt and then make sure that all commands we care about use that feature?
-- Cheers, Sverre Rabbelier