jj: Add jj insert alias for forgotten commits
Allows the user to just use the `ji` alias to quickly create a (previous) change, commit whatever they forgot and move back to the current commit.
This commit is contained in:
parent
cfa59ae9df
commit
98dad64976
1 changed files with 6 additions and 1 deletions
|
|
@ -34,6 +34,12 @@ alias jee="jj next --edit"
|
||||||
alias jss="jj squash"
|
alias jss="jj squash"
|
||||||
alias jsi="jj squash --interactive"
|
alias jsi="jj squash --interactive"
|
||||||
|
|
||||||
|
# oops buttons
|
||||||
|
alias ju="jj undo"
|
||||||
|
# for damn,-forgot-to-split-this-commit workflow
|
||||||
|
# Creates a new commit before with your selected changes, lets you describe it and carry on
|
||||||
|
alias ji="jj new -B@ --no-edit && jj squash --interactive && jj edit '@-' && jj describe && jj edit '@+'"
|
||||||
|
|
||||||
# revset info
|
# revset info
|
||||||
alias jl="jj log -T builtin_log_oneline"
|
alias jl="jj log -T builtin_log_oneline"
|
||||||
alias jL="jj log -r 'all()'"
|
alias jL="jj log -r 'all()'"
|
||||||
|
|
@ -56,6 +62,5 @@ alias jb="jj log -r 'ancestors(heads(all()), 3)'"
|
||||||
|
|
||||||
alias jrb="jj rebase"
|
alias jrb="jj rebase"
|
||||||
|
|
||||||
alias ju="jj undo"
|
|
||||||
|
|
||||||
alias jp="jj git push"
|
alias jp="jj git push"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue