feat: add :Review command

This commit is contained in:
Job Jobse committed 2026-11-07 11:44:32 +01:00
1 parent cdcea08071
commit ab59364e78
5 files changed
+102 -39

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
-- :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 origin/HEAD)
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,
})