refactor(sapling): run addremove before committing

When running commit, any new file that has been created dose not show up
ready to be committed. I am running commit in interactive mode so it
dose not get committed automatically. I can then choose if I want to
actually commit the file
This commit is contained in:
Ade Attwood 2024-04-19 20:04:37 +01:00
parent 2b6097dc9e
commit 3f3b98bf1b

View file

@ -2,7 +2,7 @@
# can mostly replace `g` with `s` and you are using sapling instead of git. # can mostly replace `g` with `s` and you are using sapling instead of git.
alias s="\\sl" alias s="\\sl"
alias sl="\\sl log --pager never --remote -r '.::top() or last(::., 40)'" alias sl="\\sl log --pager never --remote -r '.::top() or last(::., 40)'"
alias sc="\\sl commit -iv" alias sc="sl addremove . && \\sl commit -iv"
alias sd="\\sl diff" alias sd="\\sl diff"
alias ss="\\sl status" alias ss="\\sl status"
alias sco="\\sl log -r 'heads(draft())' | fzf --ansi | cut -d' ' -f3 | xargs \\sl goto" alias sco="\\sl log -r 'heads(draft())' | fzf --ansi | cut -d' ' -f3 | xargs \\sl goto"