We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67c2638 commit 58a3cf3Copy full SHA for 58a3cf3
lua/gitlab/reviewer/diffview.lua
@@ -16,15 +16,9 @@ M.open = function()
16
return
17
end
18
19
- vim.api.nvim_command(string.format("DiffviewOpen %s", diff_refs.base_sha))
+ vim.api.nvim_command(string.format("DiffviewOpen %s..%s", diff_refs.base_sha, diff_refs.head_sha))
20
M.tabnr = vim.api.nvim_get_current_tabpage()
21
22
- if vim.fn.trim(vim.fn.system("git rev-parse HEAD")) ~= diff_refs.head_sha then
23
- u.notify(
24
- "Current branch does not have correct HEAD revision, please pull " .. diff_refs.head_sha,
25
- vim.log.levels.WARN
26
- )
27
- end
28
if state.INFO.has_conflicts then
29
u.notify("This merge request has conflicts!", vim.log.levels.WARN)
30
0 commit comments