-
As discussed in places like #2425 (reply in thread) , it can be useful to have a concept of a "closest" bookmark. However, all the syntax examples I can find (e.g. Is there a way to get only the first of such a list? I've scoured the docs and tried a lot of syntax but I can't find a way to get it to give me a single one. The closest I've found is to print them using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
You can use |
Beta Was this translation helpful? Give feedback.
I think
coalesce(X, Y)
is what you want here (notcoalesce(X | Y)
, which is equivalent toX | Y
). Maybe something likelatest(coalesce(heads(::@ & bookmarks), fork_point(@ | trunk())))
?