jj: Add revset alias for current git head

Adds a very simple 'githead' revset alias. This is not much simpler than
directly invoking `git_head()` but it will remind me in the future of
its existence.
This commit is contained in:
Marty Oehme 2025-02-22 11:00:12 +01:00
parent 98dca7ec04
commit dc7bf66052
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -40,3 +40,4 @@ log = "ancestors(@, 5) | ancestors(trunk()..(visible_heads() & mine()), 2) | tru
"downstream(x,y)" = "(x::y) & y"
"branches" = "downstream(trunk(), bookmarks()) & mine()"
"curbranch" = "latest(branches::@- & branches)"
"githead" = "::git_head()"