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

Re: Git in GSoC 2014 Suggestion: core.filemode always false for cygwin

From
Torsten Bögershausen <tboegi@web.de>
Date
Feb 26, 2014, 17:15 UTC
Message-ID
<530E2146.1000003@web.de>
In-Reply-To
<20140225154158.GA9038@sigill.intra.peff.net>
On 2014-02-25 16.41, Jeff King wrote:
> I'm pleased to announce that Git has been accepted to this year's Google
> Summer of Code.

I'm not sure if this is the right way to propose mini projects, but in case the answer is not no, may I suggest one:

Motivation, the problem: Since commit c28facd216b501d41ca76f "cygwin: stop forcing core.filemode=false" Git under cygwin initializes repos with core.filemode = true under NTFS

This allows a smooth workflow, when e.g. *.sh files are pushed and pulled between Cygwin, Linux/Unix or Mac OS.

However when I visit such a repo under Mingw, then Mingw reads core.filemode =true, but is unable to detect whether the X-bit is set, and reads it as not set.

Therefore "git status" thinks that e.g. all *.sh files have lost the executable bit, abd reports them as changed.

Proposal: Under Mingw, keep trust_executable_bit always false, regardless what core.filemode says. Activate NO_TRUSTABLE_FILEMODE in config.mak.uname for Mingw (currently it is not used to anything)

Keep the logic in init-db.c to initialize core.filemode = false under Mingw 
Language: C
Difficulty: easy
Previous: Shawn Pearce
Message 20 of 20 in “Git in GSoC 2014”
  1. Jeff KingFeb 25, 2014
  2. Dmitry S. DolzhenkoFeb 25, 2014
  3. Michael HaggertyFeb 25, 2014
  4. Jeff KingFeb 26, 2014
  5. Michael HaggertyFeb 26, 2014
  6. Jeff KingFeb 26, 2014
  7. Vicent MartíFeb 26, 2014
  8. Jeff KingFeb 26, 2014
  9. Junio C HamanoFeb 26, 2014
  10. Michael HaggertyFeb 27, 2014
  11. Junio C HamanoFeb 27, 2014
  12. Michael HaggertyFeb 27, 2014
  13. Junio C HamanoFeb 27, 2014
  14. Andrew ArdillApr 22, 2014
  15. Brian GesiakApr 22, 2014
  16. Duy NguyenFeb 26, 2014
  17. Vicent MartíFeb 26, 2014
  18. Jeff KingFeb 26, 2014
  19. Shawn PearceFeb 26, 2014
  20. Torsten BögershausenFeb 26, 2014

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.