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

Re: [PATCH v2] log: Handle new repository case.

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 26, 2012, 04:00 UTC
Message-ID
<7v7guuen8m.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAA3EhHK25rLU-gQNUG0cmJ4E1g+Ce6AHcMF6jzcco5QaTJE+jA@mail.gmail.com>
Leila <muhtasib@gmail.com> writes:
Show 8 quoted lines
>> I didn't think about other commands, but I do not think format-patch
>> wants to silently succeed without doing anything---it is definitely
>> a user error, no?
>>
>
> The other changed commands are git show, git whatchanged, git reflog.
> And I think for the initial repo case, they can just silently succeed
> vs display that error message.

What should happen if you say "git log/show/whatchanged" immediately after running "git checkout --orphan foo"? Should these commands succeed silently?

Previous: Leila
Message 4 of 4 in “log: Handle new repository case.”
  1. log: Handle new repository case.Leila Muhtasib, Jun 25, 2012
  2. Junio C HamanoJun 25, 2012
  3. LeilaJun 26, 2012
  4. Junio C HamanoJun 26, 2012

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.