Add suckto from work computer's .zsh_local

This commit is contained in:
Sage Vaillancourt 2024-02-08 08:57:59 -05:00
parent d8ef23aa61
commit 3fa1c08a53
1 changed files with 10 additions and 0 deletions

View File

@ -16,6 +16,16 @@ function slides() {
PATH="$OLD_PATH"
}
function suckto {
local dest_branch="$1"
changed_files="$(git status --porcelain=v1 2>/dev/null | wc -l)"
git suck
git switch -c "$dest_branch"
if [[ "$changed_files" != "0" ]]; then
git stash pop
fi
}
function integrate {
local from="$(realpath $1)"
if [[ "$from" == "$f"* ]]; then