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
|
|
@ -9,7 +9,7 @@ key = "73BA40D5AFAF49C9"
|
||||||
[git]
|
[git]
|
||||||
sign-on-push = true
|
sign-on-push = true
|
||||||
subprocess = 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]
|
[ui]
|
||||||
diff-editor = ["nvim", "-c", "DiffEditor $left $right $output"]
|
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"
|
alias jrb="jj rebase"
|
||||||
|
|
||||||
|
# remote work
|
||||||
|
alias jrv="jj git remote list"
|
||||||
alias jp="jj git push"
|
alias jp="jj git push"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue