You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the great plugin—I switched from vim-gitgutter and am very happy I did.
However, there's one gitgutter feature I missed so much that I needed to re-implement it in my .vimrc—the ability to diff against a commit other than HEAD. I realize something similar was discussed in #232; if you are committed to not including this feature, that's no problem—I've already handled my use case. But I thought I'd take a minute to make the argument in case you are willing to support the feature. What I have to say will be Git-specific, since that's the VCS that I know.
Here's the use-case. As you doubtless know, a very common work-flow (especially in open-source projects), is for someone to submit a PR and then receive comments/change requests on that PR. When reviewing those comments, it's very helpful for the submitter to see the changes that they made in the PR—that is, to diff the file against HEAD~ or HEAD~2. It's much less useful to review the changes against HEAD, since that's the version that was just submitted; necessarily, it doesn't have any changes.
This needs a lot of work and especially testing done to make sure that the experience is the same for all supported VCS. I'm not refusing the general idea, though.
But it probably won't happen anytime soon, since there are other things I want to improve first (like updating signs without relying on the current state of the buffer being written to disk, so that g:signify_realtime can be enabled by default).
Thanks for the great plugin—I switched from vim-gitgutter and am very happy I did.
However, there's one gitgutter feature I missed so much that I needed to re-implement it in my .vimrc—the ability to diff against a commit other than
HEAD
. I realize something similar was discussed in #232; if you are committed to not including this feature, that's no problem—I've already handled my use case. But I thought I'd take a minute to make the argument in case you are willing to support the feature. What I have to say will be Git-specific, since that's the VCS that I know.Here's the use-case. As you doubtless know, a very common work-flow (especially in open-source projects), is for someone to submit a PR and then receive comments/change requests on that PR. When reviewing those comments, it's very helpful for the submitter to see the changes that they made in the PR—that is, to diff the file against
HEAD~
orHEAD~2
. It's much less useful to review the changes againstHEAD
, since that's the version that was just submitted; necessarily, it doesn't have any changes.Here's how I addressed the issue in my .vimrc:
Of course, the full version would have to be significantly expanded to address the other VCSs, but that might provide a flavor of a solution.
As I said, I've already addressed my use-case, but I thought I'd add my $0.02 about what features would be useful.
Thanks again for the great plugin.
The text was updated successfully, but these errors were encountered: