fix(bookmark): add -r when creating bookmarks to correctly handle revsets

This commit is contained in:
NicolasGB
2025-12-19 19:36:54 +10:00
parent be8cacae9d
commit 40cf2fea13
+1 -1
View File
@@ -375,7 +375,7 @@ function M.bookmark_create(opts)
default = "@",
}, function(revset)
revset = revset or "@"
local cmd = string.format("jj b c %s %s", input, revset)
local cmd = string.format("jj b c %s -r %s", input, revset)
runner.execute_command_async(cmd, function()
utils.notify(
string.format("Bookmark `%s` created successfully for %s", input, revset),