{"action":"created","issue":{"url":"https://api.github.com/repos/pnedev/compare-plugin/issues/74","repository_url":"https://api.github.com/repos/pnedev/compare-plugin","labels_url":"https://api.github.com/repos/pnedev/compare-plugin/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/pnedev/compare-plugin/issues/74/comments","events_url":"https://api.github.com/repos/pnedev/compare-plugin/issues/74/events","html_url":"https://github.com/pnedev/compare-plugin/issues/74","id":157853793,"number":74,"title":"\"Git diff\" EOL format","user":{"login":"xylographe","id":8535293,"avatar_url":"https://avatars.githubusercontent.com/u/8535293?v=3","gravatar_id":"","url":"https://api.github.com/users/xylographe","html_url":"https://github.com/xylographe","followers_url":"https://api.github.com/users/xylographe/followers","following_url":"https://api.github.com/users/xylographe/following{/other_user}","gists_url":"https://api.github.com/users/xylographe/gists{/gist_id}","starred_url":"https://api.github.com/users/xylographe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xylographe/subscriptions","organizations_url":"https://api.github.com/users/xylographe/orgs","repos_url":"https://api.github.com/users/xylographe/repos","events_url":"https://api.github.com/users/xylographe/events{/privacy}","received_events_url":"https://api.github.com/users/xylographe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pnedev/compare-plugin/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2016-06-01T08:47:19Z","updated_at":"2016-06-08T10:34:36Z","closed_at":"2016-06-07T07:47:53Z","body":"- git config is `core.autocrlf=true`\r\n- text files in the git repository have LF EOL\r\n- checked out text files have CR+LF EOL\r\n\r\nResult after triggering \"Git diff\",\r\n![cp-git](https://cloud.githubusercontent.com/assets/8535293/15703220/6af39676-27e4-11e6-9a40-032a540e0cee.png)\r\n\r\nIt would seem that `core.autocrlf=true` is ignored. But the status line displays \"Dos\\Windows\".\r\nJust a very minor issue, because CP ignores EOL differences.\r\n\r\nNote that although the file has not been modified after `git checkout`, the first line in the example above is flagged as different, I think, this might be caused by the UTF-8 BOM, although the status line does show \"UTF-8-BOM\" (same as working copy).\r\n"},"comment":{"url":"https://api.github.com/repos/pnedev/compare-plugin/issues/comments/224551791","html_url":"https://github.com/pnedev/compare-plugin/issues/74#issuecomment-224551791","issue_url":"https://api.github.com/repos/pnedev/compare-plugin/issues/74","id":224551791,"user":{"login":"xylographe","id":8535293,"avatar_url":"https://avatars.githubusercontent.com/u/8535293?v=3","gravatar_id":"","url":"https://api.github.com/users/xylographe","html_url":"https://github.com/xylographe","followers_url":"https://api.github.com/users/xylographe/followers","following_url":"https://api.github.com/users/xylographe/following{/other_user}","gists_url":"https://api.github.com/users/xylographe/gists{/gist_id}","starred_url":"https://api.github.com/users/xylographe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xylographe/subscriptions","organizations_url":"https://api.github.com/users/xylographe/orgs","repos_url":"https://api.github.com/users/xylographe/repos","events_url":"https://api.github.com/users/xylographe/events{/privacy}","received_events_url":"https://api.github.com/users/xylographe/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T10:34:36Z","updated_at":"2016-06-08T10:34:36Z","body":"Hello Pavel,\r\n\r\nI was unable to reproduce.\r\n(3) I used the \"Reload\" menu-item from the tab context menu. After reloading the status bar does indeed (erroneously) report UNIX line endings.\r\n(4) The \"Encoding\" menu and the status bar show UTF-8 (UTF-8-BOM) at all times.\r\n(5) Compare is performed (correctly) without different-encodings warning.\r\n\r\nI also tried with a windows-1252 encoded file, but the result was the same (obviously, Windows-1252 is shown instead of UTF-8-BOM).\r\n"}}
{"actor":{"display_login":"xylographe"}}