101 days ago Β· Tech Β· hide Β· Fediverse post

πŸ€– This post includes some LLM-derived content πŸ€– Since the availability of GitHub's Stacked PRs finally landing for repositories that use a Merge Queue, I've been "kicking the tyres" with some of my contributions to Renovate. They're working mostly well so far, but I'm finding it a bit annoying trying to remember if I'm on a branch that's part of a stack. I'd started wiring this into my zsh config, still using Grml's zsh config as a base, and found it was a bit awkward. I decided to outsource it to Claude Sonnet 5 - cause I guess that's the sort of person I am now? πŸ˜… - and it came out with this: # in case you're working in a Git worktree git_common_dir="$(git rev-parse --git-common-dir 2>/dev/null)" || { REPLY=""; return } stack_file="$git_common_dir/gh-stack" position="$(jq -r --arg b "$(git branch --show-current)" ' .stacks[] | select(.branches[]?.branch == $b) | (.branches | map(.branch)) as $names | ($names | index($b)) as $idx | "\($idx + 1)/\($names | length)" ' "$stack_file"…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town