Skip to content

Commit 58a3cf3

Browse files
committed
this change does not belong to this PR
1 parent 67c2638 commit 58a3cf3

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lua/gitlab/reviewer/diffview.lua

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,9 @@ M.open = function()
1616
return
1717
end
1818

19-
vim.api.nvim_command(string.format("DiffviewOpen %s", diff_refs.base_sha))
19+
vim.api.nvim_command(string.format("DiffviewOpen %s..%s", diff_refs.base_sha, diff_refs.head_sha))
2020
M.tabnr = vim.api.nvim_get_current_tabpage()
2121

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
2822
if state.INFO.has_conflicts then
2923
u.notify("This merge request has conflicts!", vim.log.levels.WARN)
3024
end

0 commit comments

Comments
 (0)