From 976d3f900016c79091fa7acc89357c768f75ca67 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Thu, 31 Mar 2022 15:43:49 +0200 Subject: [PATCH] git:checkout-worktree: Mention non-interactive use --- .config/zsh/autoload/git/git-checkout-worktree | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/zsh/autoload/git/git-checkout-worktree b/.config/zsh/autoload/git/git-checkout-worktree index 9b5eaa4..c37a0e6 100755 --- a/.config/zsh/autoload/git/git-checkout-worktree +++ b/.config/zsh/autoload/git/git-checkout-worktree @@ -5,6 +5,11 @@ # When the shell closes the worktree is tried to be removed. Until that works # without problems (e.g. dirty), a new shell is spawned to resolve all conflicts # (e.g. stashing). Finally the temporary directory is deleted. +# +# Instead of dropping in an interactive shell, the commands to execute can be +# passed via stdin. +# TODO: If any conflicts arise, all further shells should be interactive instead +# of looping forever. local GIT_ROOT TEMP_DIR REPO_DIR GIT_ROOT="${$(git rev-parse --show-toplevel):t}" || return