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

Re: [PATCH/FINAL] status: contextually notify user about an initial commit

From: Kaartic Sivaraam <hidden>
Date: 2017-06-21 14:35:40

Possibly related (same subject, not in this thread)

On Wed, 2017-06-21 at 08:07 +0530, Kaartic Sivaraam wrote:
The existing message, "Initial commit", makes sense for the commit
template
notifying users that it's their initial commit, but is confusing when
merely checking the status of a fresh repository (or orphan branch)
without having any commits yet.

Change the output of "status" to say "No commits yet" when "git
status" is run on a fresh repo (or orphan branch), while retaining
the
current "Initial commit" message displayed in the template that's
displayed in the editor when the initial commit is being authored.

A few alternatives considered were,

 * Waiting for initial commit
 * Your current branch does not have any commits
 * Current branch waiting for initial commit

The most succint one among the alternatives was chosen.

Helped-by: Junio C Hamano [off-list ref]
Signed-off-by: Kaartic Sivaraam <redacted>
Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
---

 The 'FINAL' part in the subject is just my opinion about 
 this patch
Just for the note, the tests passed locally and all travis-ci builds
jobs succeeded except for the one in which the 'GITTEXT_POISON'
environment variable is enabled. I guess that isn't an issue, from what
I came to know while digging about it.

-- 
Regards,
Kaartic Sivaraam [off-list ref]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help