{"action":"created","issue":{"url":"https://api.github.com/repos/git-for-windows/git/issues/311","labels_url":"https://api.github.com/repos/git-for-windows/git/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/git-for-windows/git/issues/311/comments","events_url":"https://api.github.com/repos/git-for-windows/git/issues/311/events","html_url":"https://github.com/git-for-windows/git/issues/311","id":102803562,"number":311,"title":"Simulate core.filemode","user":{"login":"dra27","id":5250680,"avatar_url":"https://avatars.githubusercontent.com/u/5250680?v=3","gravatar_id":"","url":"https://api.github.com/users/dra27","html_url":"https://github.com/dra27","followers_url":"https://api.github.com/users/dra27/followers","following_url":"https://api.github.com/users/dra27/following{/other_user}","gists_url":"https://api.github.com/users/dra27/gists{/gist_id}","starred_url":"https://api.github.com/users/dra27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dra27/subscriptions","organizations_url":"https://api.github.com/users/dra27/orgs","repos_url":"https://api.github.com/users/dra27/repos","events_url":"https://api.github.com/users/dra27/events{/privacy}","received_events_url":"https://api.github.com/users/dra27/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/git-for-windows/git/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/git-for-windows/git/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-24T14:13:06Z","updated_at":"2015-08-25T09:53:35Z","closed_at":null,"body":"Given the lovely addition of support for symbolic links, is there any intention/desire to add support for `core.filemode = true` for Windows Git?\r\nI'm wondering if it would be practical to have a cache (say .git/chmods) which record the names of files which are 755 rather than 644 and a Windows-only git chmod command which allows it to be changed. I can see that there might be some idiosyncrasies with renaming (although if git commit is able to identify a file as having been renamed, it might be possible to move the 755 mask with it too).\r\nWhile obviously 755 is never going to mean anything on Windows, being able to have `core.filemode = true` would be nice for cross-platform repos.\r\nIs this desirable (and should be a feature on Git itself?)"},"comment":{"url":"https://api.github.com/repos/git-for-windows/git/issues/comments/134542204","html_url":"https://github.com/git-for-windows/git/issues/311#issuecomment-134542204","issue_url":"https://api.github.com/repos/git-for-windows/git/issues/311","id":134542204,"user":{"login":"PhilipOakley","id":914343,"avatar_url":"https://avatars.githubusercontent.com/u/914343?v=3","gravatar_id":"","url":"https://api.github.com/users/PhilipOakley","html_url":"https://github.com/PhilipOakley","followers_url":"https://api.github.com/users/PhilipOakley/followers","following_url":"https://api.github.com/users/PhilipOakley/following{/other_user}","gists_url":"https://api.github.com/users/PhilipOakley/gists{/gist_id}","starred_url":"https://api.github.com/users/PhilipOakley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhilipOakley/subscriptions","organizations_url":"https://api.github.com/users/PhilipOakley/orgs","repos_url":"https://api.github.com/users/PhilipOakley/repos","events_url":"https://api.github.com/users/PhilipOakley/events{/privacy}","received_events_url":"https://api.github.com/users/PhilipOakley/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T09:53:35Z","updated_at":"2015-08-25T09:53:35Z","body":"Any `chmod +x` trick would also have to cope with the `git gui` effect of staging and unstaging of a file. This is very easy to do (as a user) as both a mistaken click, and as a deliberate way of picking up new changes (unstage/restage said file), and it is here that one can easily loose the `+x`.\r\n\r\nI've certainly had it as a problem on a recent patch series where a script lost its +x while tweaking/amending during a rebase.\r\n\r\nAs an aside, I have an aspiration to get the `git gui` (and `gitk`) to highlight in red (or suitable warning colour) any changes to the file mode bits when the core.filemode set to false - i.e. if you can't trust the filemode then always warn about the changes. `gitk` warnings are needed for looking at patch series."}}