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.
This commit is contained in:
Marty Oehme 2025-05-22 14:03:56 +02:00
parent 83e2b9f31b
commit b1f751a82d
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -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)'"