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

Re: git diff-index --raw HEAD and git diff --raw HEAD output the same thing?

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Mar 1, 2008, 13:21 UTC
Message-ID
<alpine.LSU.1.00.0803011320100.22527@racer.site>
In-Reply-To
<46dff0320803010510q67bc4101k9f85c71e5d20b4@mail.gmail.com>
Hi,
On Sat, 1 Mar 2008, Ping Yin wrote:
Show 5 quoted lines
> Strange things is this line
> :160000 160000 34f279b1662a6bef6a8fdea1827bbdbd80f12444
> 0000000000000000000000000000000000000000 M      commonmake
> 
> why mod is 160000 while sha1 is 0000...

This indicates that a submodule (160000) was deleted (00000). It is easier not to handle a deletion as mode change...

Ciao, Dscho

Previous: Ping YinNext: Junio C Hamano
Message 2 of 6 in “git diff-index --raw HEAD and git diff --raw HEAD output the same thing?”
  1. Ping YinMar 1, 2008
  2. Johannes SchindelinMar 1, 2008
  3. Junio C HamanoMar 2, 2008
  4. Ping YinMar 2, 2008
  5. Ping YinMar 2, 2008
  6. Fwd: git diff-index --raw HEAD and git diff --raw HEAD output the same thing?Ping Yin, Mar 2, 2008

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.