jj: Add private commit uploading safety
Do not push commits prefixed with `private: ` to any git remote.
This commit is contained in:
parent
6a6dfe3a6e
commit
5dfba029d8
2 changed files with 3 additions and 2 deletions
vcs/jj/config
|
@ -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"]
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue