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 9, 2005, 02:19 UTC
Message-ID
<Pine.LNX.4.64.0510081909250.31407@g5.osdl.org>
In-Reply-To
<7vzmpjoa32.fsf@assigned-by-dhcp.cox.net>
On Sat, 8 Oct 2005, Junio C Hamano wrote:
Show 10 quoted lines
>
> Alex Riesen <raa.lkml@gmail.com> writes:
> > These are not real attributes, cygwin emulates them from the names,
> > like .exe will always be 0755, for example.
> 
> Ouch.  Is this true in general, or only on FAT-derived
> filesystems?
> 
> We may need to worry about this on the core side after all.
> Some people need to mount FAT even on Linux systems, 

I think we might want to have a flag that says "don't care about filesystem modes". That should be pretty easy, I think we'd get most of them by just adding some logic to "ce_match_stat()".

Then add a "git chmod" to set the mode in the index (which should end up being just a wrapper around the regular "git-update-index" using the "--cacheinfo" flag, I think).

Those parts should be trivial.

The more interesting issue is how to set the _flag_ that we should do this. We may have to add a config file, and it should be per-repository (ie something like ".git/config" or ".git/info/config"). Or do we just do yet another environment variable?

		Linus
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 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.