From: "SZEDER Gábor" <szeder.dev@gmail.com>
To: "Philip Oakley" <philipoakley@iee.org>
Cc: "SZEDER Gábor" <szeder.dev@gmail.com>,
David <bouncingcats@gmail.com>,
"Junio C Hamano" <gitster@pobox.com>,
"Samuel Lijin" <sxlijin@gmail.com>,
"brian m. carlson" <sandals@crustytoothpaste.net>,
"Stefan Beller" <sbeller@google.com>,
"Kaartic Sivaraam" <kaarticsivaraam91196@gmail.com>,
git@vger.kernel.org
Subject: Re: What does this output of git supposed to mean ?
Date: Tue, 6 Jun 2017 13:43:55 +0200 [thread overview]
Message-ID: <20170606114355.30749-1-szeder.dev@gmail.com> (raw)
In-Reply-To: <D0E8FF50F1E74043AA0BD71E80C365E5@PhilipOakley>
> >> In the context of "status", it probably is more logically correct if
> >> it said "No commit yet" or something. This is no longer "is initial
> >> harder than root?" ;-)
> >
> > Exactly. I agree with OP, in the context of running 'git status', I find
> > the string "Initial commit" confusing in the example below, because
> > at that time no commits exist. This creates confusion what git is
> > talking about. The 'git log' message is not very friendly either.
> >
> > Perhaps say something like "Repository is empty." there.
>
> <bikeshed>
> I like that. I think that is a very appropriately descriptive statement.
>
> An alternative ,with slightly less textual change, could be "Waiting for
> initial commit"
> </bikeshed>
We should consider orphan/unborn branches, too:
git (master)$ git checkout --orphan newroot
Switched to a new branch 'newroot'
git (newroot +)$ git reset --hard
git (newroot #)$ git status
On branch newroot
Initial commit
nothing to commit (create/copy files and use "git add" to track)
A purely textual change will not be sufficient, I'm afraid. Saying
"Repository is empty" right after 'git init' is fine, I like it.
However, on an unborn branch with empty index it would be just wrong.
"Waiting for initial commit" is much better even in this case, but I
still don't like that "initial", though I can't say why, and don't
have any better suggestion either. Though users experienced enough to
create an empty unborn branch would probably not be confused by that.
next prev parent reply other threads:[~2017-06-06 11:45 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-05 14:04 What does this output of git supposed to mean ? Kaartic Sivaraam
2017-06-05 23:10 ` brian m. carlson
2017-06-05 23:18 ` Stefan Beller
2017-06-06 1:00 ` Junio C Hamano
2017-06-06 1:11 ` brian m. carlson
2017-06-06 1:39 ` Samuel Lijin
2017-06-06 1:52 ` Junio C Hamano
2017-06-06 2:06 ` David
2017-06-06 11:07 ` Philip Oakley
2017-06-06 11:43 ` SZEDER Gábor [this message]
2017-06-06 18:42 ` Jeff King
2017-06-06 18:53 ` Jeff King
2017-06-06 11:52 ` Junio C Hamano
2017-06-06 14:08 ` Kaartic Sivaraam
2017-06-06 22:05 ` Philip Oakley
2017-06-07 12:56 ` Kaartic Sivaraam
2017-06-07 22:14 ` Philip Oakley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170606114355.30749-1-szeder.dev@gmail.com \
--to=szeder.dev@gmail.com \
--cc=bouncingcats@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=kaarticsivaraam91196@gmail.com \
--cc=philipoakley@iee.org \
--cc=sandals@crustytoothpaste.net \
--cc=sbeller@google.com \
--cc=sxlijin@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).