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

Re: Seeing various mode changes on cygwin

From
Linus Torvalds <torvalds@osdl.org>
Date
Oct 10, 2005, 18:22 UTC
Message-ID
<Pine.LNX.4.64.0510101120410.14597@g5.osdl.org>
In-Reply-To
<Pine.LNX.4.63.0510101354520.23242@iabervon.org>
On Mon, 10 Oct 2005, Daniel Barkalow wrote:
> 
> Actually, you're right; it is information about the behavior of the 
> working tree, and is also needed if you want to compare the working tree 
> against a tree object, in which case you aren't using the index at all.
Git _always_ uses the index for working tree operations.

It may take the actual file _data_ from the working tree, but it will take the list of files from the index, so it's certainly possible to link the index to the working tree.

That said, I don't think it's necessarily a good idea. You can have temporary indexes for various operations that ignore the main one (ie any random

	GIT_INDEX_FILE=tmp git-read-tree ...
will create a new index).
So I think it's much better to have a config file.
I'll write something up. Make it extensible while at it.
		Linus
Previous: Daniel BarkalowNext: Linus Torvalds
Message 10 of 18 in “Seeing various mode changes on cygwin”
  1. Jonas FonsecaOct 8, 2005
  2. Junio C HamanoOct 8, 2005
  3. Alex RiesenOct 8, 2005
  4. Junio C HamanoOct 8, 2005
  5. Linus TorvaldsOct 9, 2005
  6. Junio C HamanoOct 9, 2005
  7. Daniel BarkalowOct 10, 2005
  8. Junio C HamanoOct 10, 2005
  9. Daniel BarkalowOct 10, 2005
  10. Linus TorvaldsOct 10, 2005
  11. Add ".git/config" file parserLinus Torvalds, Oct 10, 2005
  12. Linus TorvaldsOct 10, 2005
  13. H. Peter AnvinOct 10, 2005
  14. Linus TorvaldsOct 10, 2005
  15. Junio C HamanoOct 12, 2005
  16. Use core.filemode.Junio C Hamano, Oct 12, 2005
  17. H. Peter AnvinOct 9, 2005
  18. Alex RiesenOct 9, 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.