From c74b06957c7a7e58887aa3b4f220c2be45383d61 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Fri, 8 May 2026 04:43:48 +0200 Subject: [PATCH] tmp --- justfile | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/justfile b/justfile index 74bf856..a54ea37 100644 --- a/justfile +++ b/justfile @@ -613,7 +613,8 @@ bump-new-worktree *packages: [[ "${#packages[@]}" -gt 0 ]] export JUST_SYSTEM="$(just _a_system)" gum confirm --default=no "Check versions on all branches?" && just get-versions "${packages[0]}" ||: # TODO: timeout? - worktree=$(just _new_worktree "$(gum confirm "Use tmp worktree?" && echo tmp-bump || echo bump)" "$(printf "%s\n" "${packages[0]}" | rev | cut -d. -f1 | rev)") + #worktree=$(just _new_worktree "$(gum confirm "Use tmp worktree?" && echo tmp-bump || echo bump)" "$(printf "%s\n" "${packages[0]}" | rev | cut -d. -f1 | rev)") + worktree=$(just _new_worktree "$bump" "$(printf "%s\n" "${packages[0]}" | rev | cut -d. -f1 | rev)") [[ -n "$worktree" ]] [[ -d "$worktree" ]] cd "$worktree" @@ -680,7 +681,8 @@ fix *packages: export JUST_SYSTEM="$(just _a_system)" just open-package-urls "${packages[0]}" ||: - cd "$(just _new_worktree "$(gum confirm "Use tmp worktree?" && echo tmp-fix || echo fix)" "$(echo "${packages[0]}" | rev | cut -d. -f1 | rev)")" + #cd "$(just _new_worktree "$(gum confirm "Use tmp worktree?" && echo tmp-fix || echo fix)" "$(echo "${packages[0]}" | rev | cut -d. -f1 | rev)")" + cd "$(just _new_worktree "fix" "$(echo "${packages[0]}" | rev | cut -d. -f1 | rev)")" just _fix "${packages[@]}" ||: if gum confirm "Try to bump?" --default=no; then rm -rf results-src @@ -813,8 +815,15 @@ checkout-commit-in-worktree $commit=`just _a_commit`: @new-worktree *args: cd "$(just _new_worktree "$@")"; exec just _enter_interactive_shell -@_a_wt_type: - gum choose feat fix init bump doc migrate backport drop tmp tmp-bump tmp-fix tmp-backport +_a_wt_type: + #!/usr/bin/env -S bash -euo pipefail + #gum choose feat fix init bump doc migrate backport drop tmp tmp-bump tmp-fix tmp-backport + wt_type=$(gum choose feat fix init bump doc migrate backport drop) + if gum confirm "Use tmp worktree?"; then + echo "tmp-$wt_type" + else + echo "$wt_type" + fi @_a_wt_name: gum input --placeholder="Branch name?"