{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/editorconfig-sublime/issues/55","repository_url":"https://api.github.com/repos/sindresorhus/editorconfig-sublime","labels_url":"https://api.github.com/repos/sindresorhus/editorconfig-sublime/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/editorconfig-sublime/issues/55/comments","events_url":"https://api.github.com/repos/sindresorhus/editorconfig-sublime/issues/55/events","html_url":"https://github.com/sindresorhus/editorconfig-sublime/issues/55","id":159181298,"number":55,"title":"Breaks git commit -v (git commit --verbose)","user":{"login":"dliuzzi","id":143884,"avatar_url":"https://avatars.githubusercontent.com/u/143884?v=3","gravatar_id":"","url":"https://api.github.com/users/dliuzzi","html_url":"https://github.com/dliuzzi","followers_url":"https://api.github.com/users/dliuzzi/followers","following_url":"https://api.github.com/users/dliuzzi/following{/other_user}","gists_url":"https://api.github.com/users/dliuzzi/gists{/gist_id}","starred_url":"https://api.github.com/users/dliuzzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dliuzzi/subscriptions","organizations_url":"https://api.github.com/users/dliuzzi/orgs","repos_url":"https://api.github.com/users/dliuzzi/repos","events_url":"https://api.github.com/users/dliuzzi/events{/privacy}","received_events_url":"https://api.github.com/users/dliuzzi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-08T14:41:32Z","updated_at":"2016-06-08T15:01:47Z","closed_at":null,"body":"According the [documentation](https://git-scm.com/docs/git-commit) for `git-commit` (emphasis mine)\r\n\r\n> **-v**\r\n> **--verbose**\r\n> Show unified diff between the HEAD commit and what would be committed at the bottom of the commit message template to help the user describe the commit by reminding what changes the commit has. **Note that this diff output doesn’t have its lines prefixed with #. This diff will not be a part of the commit message.**\r\n\r\nGit is apparently able to ignore the diff block thanks to a marker preceding it, which looks like this:\r\n\r\n```diff\r\n# ------------------------ >8 ------------------------\r\n# Do not touch the line above.\r\n# Everything below will be removed.\r\n#\r\n```\r\n\r\nToday I've discovered that `editorconfig-sublime` causes the full diff to be included in the commit message (disabling/uninstalling it fixes the problem.) I'm assuming the plugin must be messing with the \"Do not touch the line above.\" line, causing Git to get confused.\r\n\r\nI could add a `[COMMIT_EDITMSG]`  section to my .editorconfig file to try and leave this file alone, but this seems a bit hackish. Furthermore, adding this to every repository would get tiresome.\r\n\r\nI wonder is there is a more elegant solution to this. `git commit -v` is just too good to give up!\r\n\r\nIn case it matters, this is my .editorconfig file:\r\n\r\n```ini\r\nroot = true\r\n\r\n[*]\r\nend_of_line = crlf\r\nindent_size = 4\r\nindent_style = space\r\ninsert_final_newline = true\r\ntrim_trailing_whitespace = true\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/sindresorhus/editorconfig-sublime/issues/comments/224617686","html_url":"https://github.com/sindresorhus/editorconfig-sublime/issues/55#issuecomment-224617686","issue_url":"https://api.github.com/repos/sindresorhus/editorconfig-sublime/issues/55","id":224617686,"user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T15:01:47Z","updated_at":"2016-06-08T15:01:47Z","body":"Could just ignore the `COMMIT_EDITMSG` filename in this plugin."}}
{"actor":{"display_login":"sindresorhus"}}