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

Re: git-diff-tree --root

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 12, 2014, 17:31 UTC
Message-ID
<xmqq61gsbv9p.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20140912130607.GX4075@isis.sigpipe.cz>
Roman Neuhauser <neuhauser@sigpipe.cz> writes:
> git-diff-tree without --root is absolutely silent for the root commit,
> and i see no bad effects of --root on non-root commits.  are there any
> hidden gotchas?  IOW, why is the --root behavior not the default?

Because tools that was written before you proposed that change expect to see nothing for the root commit, and then you are suddenly breaking their expectations?

Previous: Roman NeuhauserNext: Roman Neuhauser
Message 2 of 4 in “git-diff-tree --root”
  1. Roman NeuhauserSep 12, 2014
  2. Junio C HamanoSep 12, 2014
  3. Roman NeuhauserSep 13, 2014
  4. Junio C HamanoSep 15, 2014

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.