{"action":"created","issue":{"url":"https://api.github.com/repos/libgit2/libgit2/issues/2798","labels_url":"https://api.github.com/repos/libgit2/libgit2/issues/2798/labels{/name}","comments_url":"https://api.github.com/repos/libgit2/libgit2/issues/2798/comments","events_url":"https://api.github.com/repos/libgit2/libgit2/issues/2798/events","html_url":"https://github.com/libgit2/libgit2/pull/2798","id":53402638,"number":2798,"title":"SafeCrLf and AutoCrLF improvements to make libgit2 behave like vanilla git","user":{"login":"csware","id":428133,"avatar_url":"https://avatars.githubusercontent.com/u/428133?v=3","gravatar_id":"","url":"https://api.github.com/users/csware","html_url":"https://github.com/csware","followers_url":"https://api.github.com/users/csware/followers","following_url":"https://api.github.com/users/csware/following{/other_user}","gists_url":"https://api.github.com/users/csware/gists{/gist_id}","starred_url":"https://api.github.com/users/csware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csware/subscriptions","organizations_url":"https://api.github.com/users/csware/orgs","repos_url":"https://api.github.com/users/csware/repos","events_url":"https://api.github.com/users/csware/events{/privacy}","received_events_url":"https://api.github.com/users/csware/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-01-05T14:45:26Z","updated_at":"2015-02-15T20:11:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/libgit2/libgit2/pulls/2798","html_url":"https://github.com/libgit2/libgit2/pull/2798","diff_url":"https://github.com/libgit2/libgit2/pull/2798.diff","patch_url":"https://github.com/libgit2/libgit2/pull/2798.patch"},"body":"If SafeCrLf=true and AutoCrLf=true hold libgit2 right now accepts a LF only file, vanilla git fails with \"fatal: LF would be replaced by CRLF in [FILENAME]\" (on Windows)\r\n\r\nAlso handling of malformed files (containing LF, CR and CRLF) was improved. And support for \"* text eol=crlf\" was added for LF-only platforms.\r\n\r\nSee change log file for all changes."},"comment":{"url":"https://api.github.com/repos/libgit2/libgit2/issues/comments/74434346","html_url":"https://github.com/libgit2/libgit2/pull/2798#issuecomment-74434346","issue_url":"https://api.github.com/repos/libgit2/libgit2/issues/2798","id":74434346,"user":{"login":"nulltoken","id":92363,"avatar_url":"https://avatars.githubusercontent.com/u/92363?v=3","gravatar_id":"","url":"https://api.github.com/users/nulltoken","html_url":"https://github.com/nulltoken","followers_url":"https://api.github.com/users/nulltoken/followers","following_url":"https://api.github.com/users/nulltoken/following{/other_user}","gists_url":"https://api.github.com/users/nulltoken/gists{/gist_id}","starred_url":"https://api.github.com/users/nulltoken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nulltoken/subscriptions","organizations_url":"https://api.github.com/users/nulltoken/orgs","repos_url":"https://api.github.com/users/nulltoken/repos","events_url":"https://api.github.com/users/nulltoken/events{/privacy}","received_events_url":"https://api.github.com/users/nulltoken/received_events","type":"User","site_admin":false},"created_at":"2015-02-15T20:11:15Z","updated_at":"2015-02-15T20:11:15Z","body":"@Therzok @csware I've opened https://github.com/libgit2/libgit2sharp/pull/961 to test this out.\r\n\r\n - Windows passes\r\n - Mac OS X complains and indeed refuses to build (which is strange as this PR builds fine. I'll take a deeper look at the build script tomorrow if noone beats me to it first)\r\n - BlobFixture.cs tests still fail on Linux. So either the tests expectations are dead wrong (which is quite possible) or those use cases aren't covered by this PR.\r\n\r\n"}}