]> Sergey Matveev's repositories - public-inbox.git/commit
viewdiff: cleanup state transitions a bit
authorEric Wong <e@80x24.org>
Sun, 20 Jan 2019 10:42:07 +0000 (10:42 +0000)
committerEric Wong <e@80x24.org>
Sun, 20 Jan 2019 11:43:16 +0000 (11:43 +0000)
commitcc7d286096a2fded30eca035ca98e42a08c934a5
tree11e45b2ea93770ad55b5453821440318869ef47b
parenta01040ed2ec1e4575947e6d589499a4c7315d90e
viewdiff: cleanup state transitions a bit

This makes things less error-prone and allows us to only
highlight the "@@ -\S+ \+\S+ @@" part of the hunk header
line, without highlighting the function context.

This more closely matches the coloring behavior of git-diff(1)
lib/PublicInbox/ViewDiff.pm