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

Re: [PATCH] read-tree: abort if no trees are given

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Sep 10, 2010, 11:29 UTC
Message-ID
<4C8A168F.1030502@viscovery.net>
In-Reply-To
<20100910120604.50aa1e94@jk.gs>
Am 9/10/2010 12:06, schrieb Jan Krüger:
> Currently, read-tree silently accepts an invocation without any
> tree-ishs given and simply clobbers the index in that case. This
> contradicts the usage synopsis and it's also probably not what anyone
> would want to happen. So, instead, abort with a fatal error.
See
http://thread.gmane.org/gmane.comp.version-control.git/135280/focus=135407
and the discussion that ensued; perhaps intersting is
http://thread.gmane.org/gmane.comp.version-control.git/135280/focus=135462
(where Junio suggest to make this a warning for now).
-- Hannes
Previous: Jan KrügerNext: Jan Krüger
Message 2 of 5 in “read-tree: abort if no trees are given”
  1. read-tree: abort if no trees are givenJan Krüger, Sep 10, 2010
  2. Johannes SixtSep 10, 2010
  3. read-tree: deprecate syntax without tree-ish argsJan Krüger, Sep 10, 2010
  4. Sverre RabbelierSep 10, 2010
  5. Junio C HamanoSep 10, 2010

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.