jj: Add private commit uploading safety

Do not push commits prefixed with `private: ` to any git remote.
This commit is contained in:
Marty Oehme 2025-02-18 12:19:47 +01:00
parent 6a6dfe3a6e
commit 5dfba029d8
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
2 changed files with 3 additions and 2 deletions
vcs/jj/config
jj
sh/alias.d

View file

@ -9,7 +9,7 @@ key = "73BA40D5AFAF49C9"
[git]
sign-on-push = true
subprocess = true
private-commits = "description(glob:'wip:*')" # refuse to push WIP commits
private-commits = "description(glob:'wip:*') | description(glob:'private:*')" # refuse to push WIP commits
[ui]
diff-editor = ["nvim", "-c", "DiffEditor $left $right $output"]

View file

@ -62,5 +62,6 @@ alias jb="jj log -r 'ancestors(heads(all()), 3)'"
alias jrb="jj rebase"
# remote work
alias jrv="jj git remote list"
alias jp="jj git push"