Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can setqflist() consider the changed base? #692

Open
delphinus opened this issue Dec 16, 2022 · 1 comment
Open

Can setqflist() consider the changed base? #692

delphinus opened this issue Dec 16, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@delphinus
Copy link

Is your feature request related to a problem? Please describe.

setqflist() can throw diffs into qflist but the diffs are not changed after I call change_base() and setqflist() again.

Describe the solution you'd like

setqflist() should consider the base changed by calling change_base(). This is so useful in reviewing PRs, I think.

" show diffs after HEAD
Gitsigns setqflist
" change the base to main
Gitsigns change_base main true
" show the whole diffs against main
Gitsigns setqflist

Describe alternatives you've considered

nothing

Additional context

vim-fugitive has the similar feature: Git difftool {revision}

@delphinus delphinus added the enhancement New feature or request label Dec 16, 2022
@taras-biletskyi

This comment was marked as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants