{"id":6370,"date":"2020-08-19T16:29:04","date_gmt":"2020-08-19T13:29:04","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=6370"},"modified":"2020-08-19T16:29:04","modified_gmt":"2020-08-19T13:29:04","slug":"feature-request-different-highlight-for-already-pushed-commits-in-interactive-rebase","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2020\/08\/19\/feature-request-different-highlight-for-already-pushed-commits-in-interactive-rebase\/","title":{"rendered":"Feature request: different highlight for already pushed commits in interactive rebase"},"content":{"rendered":"<p>Having shot myself in the foot by rewriting already pushed history, it occurred to me that perhaps I could have the commits list in interactive rebase reflect the commits&#8217; push status in color. If lines of commits that I&#8217;ve already pushed to a remote were colored red (or any sufficiently differentiating color), I might actually notice when I&#8217;m about to screw up again.<\/p>\n<p>To illustrate what I mean, here&#8217;s a mockup I made. This is what it would look like if this was my commit history, and\u00a0<a class=\"commit-link\" href=\"https:\/\/github.com\/tpope\/vim-git\/commit\/8b0ce7b47ac17346890b84d2ba6d2a0d0949d413\" data-hovercard-type=\"commit\" data-hovercard-url=\"https:\/\/github.com\/tpope\/vim-git\/commit\/8b0ce7b47ac17346890b84d2ba6d2a0d0949d413\/hovercard\"><tt>8b0ce7b<\/tt><\/a>\u00a0was the last commit I had already pushed to a remote:<\/p>\n<p><a href=\"https:\/\/user-images.githubusercontent.com\/4244772\/90640213-6217e300-e238-11ea-8fee-8333dd5c463f.png\"><img decoding=\"async\" src=\"http:\/\/mummila.net\/kommentit\/files\/2020\/08\/Kuvakaappaus-2020-08-19-15-52-35.png\" alt=\"Kuvakaappaus 2020-08-19 15-52-35\" \/><\/a><\/p>\n<p>I have no previous experience in modifying syntax highlighting code, and I have no idea if what I&#8217;m suggesting is even possible with vim, so I figured I&#8217;d open this request first in case it&#8217;s a silly idea, or conversely, if you deem this useful enough to implement yourself.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If already pushed commits were colored red (or any sufficiently differentiating color), I might actually notice when I&#8217;m about to screw up again.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[12483,3840],"class_list":["post-6370","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-git","tag-vim","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=6370"}],"version-history":[{"count":2,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6370\/revisions"}],"predecessor-version":[{"id":6373,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6370\/revisions\/6373"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=6370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=6370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=6370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}