7 lines
434 B
Lua
7 lines
434 B
Lua
-- :Review [base] [head] e.g. `:Review origin/develop`, `:Review origin/main origin/feat-x`
|
|
-- Without args it refreshes the last review (or starts one against @{upstream}: unpushed commits)
|
|
Config.command('Review', function(o) require('git').review(o.fargs[1], o.fargs[2]) end, 'Review changes against merge-base', {
|
|
nargs = '*',
|
|
complete = function() return vim.fn.systemlist('git branch -a --format=%(refname:short)') end,
|
|
})
|