From 0a6f591817174dcd940b006a434dfd93e72d08e2 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 12 Dec 2025 23:46:37 +0100 Subject: [PATCH] jj: Rename head log alias to jlh `jlh` shows all heads (leaf changes) without any additional commits, while `JLH` shows all heads with 3 ancestor commits each for some additional context. --- vcs/jj/config/nushell/autoload/jj.nu | 3 ++- vcs/jj/config/sh/alias.d/jj.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/vcs/jj/config/nushell/autoload/jj.nu b/vcs/jj/config/nushell/autoload/jj.nu index 43184cc..009fa7c 100644 --- a/vcs/jj/config/nushell/autoload/jj.nu +++ b/vcs/jj/config/nushell/autoload/jj.nu @@ -58,7 +58,8 @@ def --wrapped jloof [search: string, ...flags] { alias jlfw = jj log -r "wip()" # Find 'WIP:'-prefixed changes alias jlfp = jj log -r "private()" # Find 'PRIVATE:'-prefixed changes -alias jh = jj log -r 'ancestors(heads(all()), 3)' +alias jlh = jj log -r 'heads(all())' +alias JLH = jj log -r 'ancestors(heads(all()), 3)' alias jrb = jj rebase diff --git a/vcs/jj/config/sh/alias.d/jj.sh b/vcs/jj/config/sh/alias.d/jj.sh index d36e44b..fa9538b 100644 --- a/vcs/jj/config/sh/alias.d/jj.sh +++ b/vcs/jj/config/sh/alias.d/jj.sh @@ -70,7 +70,8 @@ alias jlfw='jj log -r "wip()"' alias jlfp='jj log -r "private()"' # show branches (i.e. head commits) w a couple previous commits -alias jh="jj log -r 'ancestors(heads(all()), 3)'" +alias jlh="jj log -r 'heads(all())'" +alias JLH="jj log -r 'ancestors(heads(all()), 3)'" alias jrb="jj rebase"