vgit.nvim icon indicating copy to clipboard operation
vgit.nvim copied to clipboard

Allow passing branch/ref to diff command

Open rawhat opened this issue 4 years ago • 1 comments

Describe the solution you'd like

One thing in my other git plugin(s) workflow is to diff against a specific branch. For example: :Gdiff origin/staging or :Gdiff HEAD~3. It would be useful to diff against things other than just the current HEAD. I couldn't determine if this functionality already exists, so if it does, my apologies!

This plugin is really cool, thank you :)

rawhat avatar Jan 09 '22 16:01 rawhat

Hey, thanks for the feature request. This feature does not exist currently and it would bring great value.

I think both buffer_diff_preview and project_diff_preview could benefit from this feature.

For buffer_diff_preview we would need to pass an additional option here and fetch the appropriate data here and I that should be it.

tanvirtin avatar Jan 10 '22 01:01 tanvirtin

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 07 '23 06:01 stale[bot]