tpope/vim-fugitive — pull request #145 by tmhedberg (2012-01-24 17:02:46+00:00)
Title: Retain original alternate buffer when invoking :Gblame

I frequently use vim's `` command to switch to the alternate buffer. When using fugitive, I often find myself mildly irritated by the fact that `:Gblame` resets the alternate buffer to the temporary buffer that it creates. The effect of this is that, following a `:Gblame` invocation (after which I close the blame window), `` switches me to the previously closed blame buffer instead of the buffer that was the alternate before fugitive changed it.

This patch simply teaches `:Gblame` to split a window for its temp buffer using Vim's `:keepalt` command as a prefix, causing it to retain the existing alternate buffer instead of changing it.