From b1f751a82d60d316707fd7aa165323f3475dba08 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 22 May 2025 14:03:56 +0200 Subject: [PATCH] jj: Improve jj WIP commit search Restrict the default search to commits _starting_ with 'WIP:', to avoid accidentally selecting commits which just contain the word 'WIP:' somewhere in the description. --- vcs/jj/config/sh/alias.d/jj.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcs/jj/config/sh/alias.d/jj.sh b/vcs/jj/config/sh/alias.d/jj.sh index 02e37d3..070edce 100644 --- a/vcs/jj/config/sh/alias.d/jj.sh +++ b/vcs/jj/config/sh/alias.d/jj.sh @@ -65,7 +65,7 @@ jlof() { jloof() { jj log --patch -r "description(substring-i:\"$*\")" } -alias jlfw='jj log -r "description(substring-i:\"WIP:\")"' +alias jlfw='jj log -r "description(regex:\"^WIP:\")"' # show branches (i.e. head commits) w a couple previous commits alias jh="jj log -r 'ancestors(heads(all()), 3)'"