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

Re: [PATCH] init - Honour the global core.filemode setting

From
Torsten Bögershausen <tboegi@web.de>
Date
Oct 2, 2014, 11:15 UTC
Message-ID
<542D33E1.6080709@web.de>
In-Reply-To
<xmqqy4szpvfv.fsf@gitster.dls.corp.google.com>
On 2014-10-01 19.10, Junio C Hamano wrote:
Show 16 quoted lines
> Hilco Wijbenga <hilco.wijbenga@gmail.com> writes:
> 
>> Perhaps I completely misunderstand the meaning of core.filemode but I
>> thought it determined whether Git cared about changes in file
>> properties?
> 
> By setting it to "false", you tell Git that the filesystem you
> placed the repository does not correctly represent the filemode
> (especially the executable bit).
> 
> "core.fileMode" in "git config --help" reads:
> 
>        core.fileMode
>            If false, the executable bit differences between the
>            index and the working tree are ignored; useful on broken
>            filesystems like FAT. See git-update- index(1).
Out of my head: Could the following be a starting point:
        core.fileMode
            If false, the executable bit differences between the
            index and the working tree are ignored.
            This may be usefull when visiting a cygwin repo with a non-cygwin
            Git client. (should we mention msysgit ? should we mention JGit/EGit ?)
	    This may even be useful for a repo on a SAMBA network mount,
            which may show all file permissions as 0755.
            See git-update-index(1) for changing the executable bit in the index. 
            The default is true, except git-clone(1) or git-init(1)
            will probe and set core.fileMode false if appropriate
            when the repository is created.
Show 7 quoted lines
> 
> Maybe our documentation is not clear enough.  A contribution from
> somebody new to Git we would appreciate would be to point out which
> part of these sentences are unclear; that way, people can work on
> improving its phrasing.
> 
> Thanks.
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 8 in “init - Honour the global core.filemode setting”
  1. init - Honour the global core.filemode settingHilco Wijbenga, Sep 28, 2014
  2. Torsten BögershausenSep 28, 2014
  3. Hilco WijbengaOct 1, 2014
  4. Junio C HamanoOct 1, 2014
  5. Torsten BögershausenOct 2, 2014
  6. Junio C HamanoOct 2, 2014
  7. Torsten BögershausenOct 3, 2014
  8. Junio C HamanoOct 3, 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.