{"action":"created","issue":{"url":"https://api.github.com/repos/tomtom/quickfixsigns_vim/issues/49","repository_url":"https://api.github.com/repos/tomtom/quickfixsigns_vim","labels_url":"https://api.github.com/repos/tomtom/quickfixsigns_vim/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/tomtom/quickfixsigns_vim/issues/49/comments","events_url":"https://api.github.com/repos/tomtom/quickfixsigns_vim/issues/49/events","html_url":"https://github.com/tomtom/quickfixsigns_vim/issues/49","id":31731872,"number":49,"title":"vcs: BufWritePost from fugitive's `Gwrite` sets signs, but should not","user":{"login":"blueyed","id":9766,"avatar_url":"https://avatars.githubusercontent.com/u/9766?v=3","gravatar_id":"","url":"https://api.github.com/users/blueyed","html_url":"https://github.com/blueyed","followers_url":"https://api.github.com/users/blueyed/followers","following_url":"https://api.github.com/users/blueyed/following{/other_user}","gists_url":"https://api.github.com/users/blueyed/gists{/gist_id}","starred_url":"https://api.github.com/users/blueyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueyed/subscriptions","organizations_url":"https://api.github.com/users/blueyed/orgs","repos_url":"https://api.github.com/users/blueyed/repos","events_url":"https://api.github.com/users/blueyed/events{/privacy}","received_events_url":"https://api.github.com/users/blueyed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-04-17T14:36:07Z","updated_at":"2016-02-13T16:00:41Z","closed_at":null,"body":"TEST CASE:\r\n1. open a (unmodified) file in a Git repository\r\n2. delete a line (`dd`)\r\n3. `:Gwrite` (writes the current file to the index)\r\n\r\nquickfixsigns will place a `-1` sign, although there is no (non-cached) difference.\r\n\r\nA second `:Gwrite` will remove the sign.\r\n\r\nThe `doautocmd` code from fugitive is here: https://github.com/tpope/vim-fugitive/blob/master/plugin/fugitive.vim#L2211-L2215"},"comment":{"url":"https://api.github.com/repos/tomtom/quickfixsigns_vim/issues/comments/183694161","html_url":"https://github.com/tomtom/quickfixsigns_vim/issues/49#issuecomment-183694161","issue_url":"https://api.github.com/repos/tomtom/quickfixsigns_vim/issues/49","id":183694161,"user":{"login":"blueyed","id":9766,"avatar_url":"https://avatars.githubusercontent.com/u/9766?v=3","gravatar_id":"","url":"https://api.github.com/users/blueyed","html_url":"https://github.com/blueyed","followers_url":"https://api.github.com/users/blueyed/followers","following_url":"https://api.github.com/users/blueyed/following{/other_user}","gists_url":"https://api.github.com/users/blueyed/gists{/gist_id}","starred_url":"https://api.github.com/users/blueyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueyed/subscriptions","organizations_url":"https://api.github.com/users/blueyed/orgs","repos_url":"https://api.github.com/users/blueyed/repos","events_url":"https://api.github.com/users/blueyed/events{/privacy}","received_events_url":"https://api.github.com/users/blueyed/received_events","type":"User","site_admin":false},"created_at":"2016-02-13T16:00:41Z","updated_at":"2016-02-13T16:00:41Z","body":"I was wrong about the `doautocmd` - at least it's not triggered currently anymore.\r\n\r\nBut instead the problem is just that fugitive writes the file, before adding it to the index:\r\nhttps://github.com/tpope/vim-fugitive/blob/9835920a3c91236021fc8c88cc4157304e24356b/plugin/fugitive.vim#L1527-L1541"}}