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

git-write-tree strangeness

From
Steven Walter <stevenrwalter@gmail.com>
Date
Aug 8, 2007, 15:42 UTC
Message-ID
<20070808154211.GA25015@dervierte>

I'm importing a large repository from svn into git with a custom tool, and I noticed a strange issue with one of the commits.

Upon investigating further, I found that when I ran "git-write-tree" followed immediately by "git-diff-index <tree>" I had differences. Does that mean that git-write-tree incorrectly recorded the index, or do I misunderstand things?

I just wanted to verify that I have at least some clue what is going on before I dig too much deeper into this issue. I'm running git-1.5.3-rc4; I'll see if it occurs with 1.5.2 and bisect if not.

-- 
-Steven Walter <stevenrwalter@gmail.com>
"A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects."
   -Robert Heinlein
Next: Alex Riesen
Message 1 of 4 in “git-write-tree strangeness”
  1. Steven WalterAug 8, 2007
  2. Alex RiesenAug 8, 2007
  3. Junio C HamanoAug 8, 2007
  4. Steven WalterAug 8, 2007

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.