From dc7bf66052a278b01d03581d26fa0bae86273749 Mon Sep 17 00:00:00 2001
From: Marty Oehme <marty.oehme@gmail.com>
Date: Sat, 22 Feb 2025 11:00:12 +0100
Subject: [PATCH] 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.
---
 vcs/jj/config/jj/config.toml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vcs/jj/config/jj/config.toml b/vcs/jj/config/jj/config.toml
index fefbb76..520db74 100644
--- a/vcs/jj/config/jj/config.toml
+++ b/vcs/jj/config/jj/config.toml
@@ -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()"