Thread (13 messages) flat view 13 messages, 3 authors, 2017-06-21

Re: [PATCH/ALMOST FINAL] Contextually notify user about an initial commit

From: Junio C Hamano <hidden>
Date: 2017-06-19 15:48:07

Possibly related (same subject, not in this thread)

Jeff King [off-list ref] writes:
On Sun, Jun 18, 2017 at 10:34:59AM +0200, Ævar Arnfjörð Bjarmason wrote:
quoted
Why not simply "No commits yet", saying "on the branch" is needlessy
duplicating information in the context of the status output in which
this is printed, i.e. now you have:

    $ ~/g/git/git-status
    On branch master

    No commits yet on the branch

    nothing to commit (create/copy files and use "git add" to track)

But we can just more succinctly say:

    $ ~/g/git/git-status
    On branch master

    No commits yet

    nothing to commit (create/copy files and use "git add" to track)

Since we've already pointed out that the user is on a branch.
I thought one of the points was to disambiguate the case of "no commits
yet in the repository" and "no commits yet on the branch". If we don't
care about making that distinction (or think that the mention of the
branch is enough to make it clear), then succinct is fine. I don't have
a strong opinion either way.
Neither do I.  As long as we always say "On branch X", the end
result would not make much difference with or without "on the
branch" at the end of this line, I would think.

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help