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

Re: files are disappearing in git

From
Linus Torvalds <torvalds@osdl.org>
Date
Nov 23, 2005, 17:20 UTC
Message-ID
<Pine.LNX.4.64.0511230917130.13959@g5.osdl.org>
In-Reply-To
<20051123142303.GJ22568@schottelius.org>
On Wed, 23 Nov 2005, Nico -telmich- Schottelius wrote:
Show 11 quoted lines
> 
> I've the problem that some files (a directory with 3 files) is simply 'away':
> 
> - We added it once
> - In current tree it's away
> - pasky aided me in irc to find the commit where it is gone with git bisect
> --> very nice tool
> - the commit, after which the directory was gone did NOT modify this directory
> - though the directory is gone
> 
> What should I do know to find out what's the reason git 'forgot' that directory?

I bet somebody just messed up the index before that commit. So the commit probably _did_ modify the directory, though some incorrect patching or some scripting bug.

If you can guess at all what went on at around that commit (what else happened there?) that might help. Was it a merge? If those three files existed in the base commit of the merge but not in one of the branches, then the merge would have assumed that the branch just deleted it.

Is the tree public so that we can look at it and perhaps make a guess from what happened around it?

		Linus
Previous: Nico -telmich- SchotteliusNext: Nico -telmich- Schottelius
Message 2 of 15 in “files are disappearing in git”
  1. Nico -telmich- SchotteliusNov 23, 2005
  2. Linus TorvaldsNov 23, 2005
  3. Nico -telmich- SchotteliusNov 24, 2005
  4. Junio C HamanoNov 24, 2005
  5. Nico -telmich- SchotteliusNov 24, 2005
  6. Ryan AndersonNov 25, 2005
  7. Nico -telmich- SchotteliusNov 25, 2005
  8. Linus TorvaldsNov 25, 2005
  9. Petr BaudisNov 25, 2005
  10. Ryan AndersonNov 25, 2005
  11. Junio C HamanoNov 25, 2005
  12. Linus TorvaldsNov 25, 2005
  13. Petr BaudisNov 25, 2005
  14. Nico -telmich- SchotteliusNov 25, 2005
  15. Petr BaudisNov 25, 2005

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.