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

[Bug] git diff assumes executable permissions change is always 0755

From
WHWes Hurd <13hurdw@gmail.com>
Date
Nov 22, 2019, 19:47 UTC
Message-ID
<CAOAGZwFScnS=FSfe9WiJ2h5W1-NCtxU4HM4FUH9LwtcCRuimcg@mail.gmail.com>

git 2.24.0 macOS 10.14.6

To reproduce:
 - Start a file, commit in git
 - chmod 0744 file.txt
 - git diff
 - ls -l file.txt

git diff reports : old mode 100644 new mode 100755

expected: git lists actual permissions of file new mode 100744 File's permissions are 0744 (-rwxr--r--)

Thanks,
Next: Elijah Newren
Message 1 of 3 in “[Bug] git diff assumes executable permissions change is always 0755”
  1. Wes HurdNov 22, 2019
  2. Elijah NewrenNov 22, 2019
  3. Denton LiuNov 22, 2019

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.