From 3f3b98bf1bb94c8c64419fb8ceebc06f9989f538 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Fri, 19 Apr 2024 20:04:37 +0100 Subject: [PATCH] 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 --- site-modules/core/files/oh-my-zsh/custom/sapling.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site-modules/core/files/oh-my-zsh/custom/sapling.zsh b/site-modules/core/files/oh-my-zsh/custom/sapling.zsh index 5eb113f..926072a 100644 --- a/site-modules/core/files/oh-my-zsh/custom/sapling.zsh +++ b/site-modules/core/files/oh-my-zsh/custom/sapling.zsh @@ -2,7 +2,7 @@ # can mostly replace `g` with `s` and you are using sapling instead of git. alias s="\\sl" 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 ss="\\sl status" alias sco="\\sl log -r 'heads(draft())' | fzf --ansi | cut -d' ' -f3 | xargs \\sl goto"