git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: What does this output of git supposed to mean ?

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 6, 2017, 11:52 UTC
Message-ID
<xmqqr2yx8h9v.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<D0E8FF50F1E74043AA0BD71E80C365E5@PhilipOakley>
"Philip Oakley" <philipoakley@iee.org> writes:
Show 10 quoted lines
> From: "David" <bouncingcats@gmail.com>
>
>> 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>
I can buy that one.  

I do not want to see "Repository is empty", as that will open us up to criticism that we are being sloppy and technically incorrect to cater to newbies (i.e. we will give the message if you do "checkout --orphan", and repository is definitely not empty in that case).

"Waiting for the initial commit", or "No commits yet", can be explained to describe the state of the current branch (not the state of the repository), and it is correct that we do not have any commit on the branch, and the branch is waiting for the initial commit.

Previous: Jeff KingNext: Kaartic Sivaraam
Message 13 of 17 in “What does this output of git supposed to mean ?”
  1. Kaartic SivaraamJun 5, 2017
  2. brian m. carlsonJun 5, 2017
  3. Stefan BellerJun 5, 2017
  4. Junio C HamanoJun 6, 2017
  5. brian m. carlsonJun 6, 2017
  6. Samuel LijinJun 6, 2017
  7. Junio C HamanoJun 6, 2017
  8. DavidJun 6, 2017
  9. Philip OakleyJun 6, 2017
  10. SZEDER GáborJun 6, 2017
  11. Jeff KingJun 6, 2017
  12. Jeff KingJun 6, 2017
  13. Junio C HamanoJun 6, 2017
  14. Kaartic SivaraamJun 6, 2017
  15. Philip OakleyJun 6, 2017
  16. Kaartic SivaraamJun 7, 2017
  17. Philip OakleyJun 7, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.