{"action":"created","issue":{"url":"https://api.github.com/repos/gitextensions/gitextensions/issues/2857","labels_url":"https://api.github.com/repos/gitextensions/gitextensions/issues/2857/labels{/name}","comments_url":"https://api.github.com/repos/gitextensions/gitextensions/issues/2857/comments","events_url":"https://api.github.com/repos/gitextensions/gitextensions/issues/2857/events","html_url":"https://github.com/gitextensions/gitextensions/issues/2857","id":91631409,"number":2857,"title":"Fails to reset selected lines on new files","user":{"login":"MichalisN","id":12886777,"avatar_url":"https://avatars.githubusercontent.com/u/12886777?v=3","gravatar_id":"","url":"https://api.github.com/users/MichalisN","html_url":"https://github.com/MichalisN","followers_url":"https://api.github.com/users/MichalisN/followers","following_url":"https://api.github.com/users/MichalisN/following{/other_user}","gists_url":"https://api.github.com/users/MichalisN/gists{/gist_id}","starred_url":"https://api.github.com/users/MichalisN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichalisN/subscriptions","organizations_url":"https://api.github.com/users/MichalisN/orgs","repos_url":"https://api.github.com/users/MichalisN/repos","events_url":"https://api.github.com/users/MichalisN/events{/privacy}","received_events_url":"https://api.github.com/users/MichalisN/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gitextensions/gitextensions/labels/bug","name":"bug","color":"e10c02"}],"state":"closed","locked":false,"assignee":{"login":"jbialobr","id":1003909,"avatar_url":"https://avatars.githubusercontent.com/u/1003909?v=3","gravatar_id":"","url":"https://api.github.com/users/jbialobr","html_url":"https://github.com/jbialobr","followers_url":"https://api.github.com/users/jbialobr/followers","following_url":"https://api.github.com/users/jbialobr/following{/other_user}","gists_url":"https://api.github.com/users/jbialobr/gists{/gist_id}","starred_url":"https://api.github.com/users/jbialobr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbialobr/subscriptions","organizations_url":"https://api.github.com/users/jbialobr/orgs","repos_url":"https://api.github.com/users/jbialobr/repos","events_url":"https://api.github.com/users/jbialobr/events{/privacy}","received_events_url":"https://api.github.com/users/jbialobr/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-06-28T19:47:02Z","updated_at":"2015-07-03T20:51:00Z","closed_at":"2015-07-03T09:25:19Z","body":"It fails to reset selected lines on newly added files. If the file is staged, reset selected lines is working as expected.\r\n\r\n**Steps to reproduce:**\r\n- Add a new file\r\n- On commit window try to reset selected line(s)\r\n\r\n**Expected result:**\r\nSelected lines are removed\r\n\r\n**Actual result:**\r\nAn error window starting with errors\r\nerror: patch failed: GitExtensions/Program - Copy.cs:0\r\nerror: GitExtensions/Program - Copy.cs: patch does not apply\r\n\r\nand followed by the patch"},"comment":{"url":"https://api.github.com/repos/gitextensions/gitextensions/issues/comments/118423784","html_url":"https://github.com/gitextensions/gitextensions/issues/2857#issuecomment-118423784","issue_url":"https://api.github.com/repos/gitextensions/gitextensions/issues/2857","id":118423784,"user":{"login":"MichalisN","id":12886777,"avatar_url":"https://avatars.githubusercontent.com/u/12886777?v=3","gravatar_id":"","url":"https://api.github.com/users/MichalisN","html_url":"https://github.com/MichalisN","followers_url":"https://api.github.com/users/MichalisN/followers","following_url":"https://api.github.com/users/MichalisN/following{/other_user}","gists_url":"https://api.github.com/users/MichalisN/gists{/gist_id}","starred_url":"https://api.github.com/users/MichalisN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichalisN/subscriptions","organizations_url":"https://api.github.com/users/MichalisN/orgs","repos_url":"https://api.github.com/users/MichalisN/repos","events_url":"https://api.github.com/users/MichalisN/events{/privacy}","received_events_url":"https://api.github.com/users/MichalisN/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T20:51:00Z","updated_at":"2015-07-03T20:51:00Z","body":"**Testing results:**\r\nResetting now works if the file doesn't contain crlf. If autocrlf is false and the file contains crlf it is still failing.\r\n\r\n**Extra information:**\r\nStaging the file shows an error/warning (icon is error, message says warning) \"CRLF will be replaced by LF \". Unstage has the original file (with crlf). Stage/Unstage looks correct. "}}