carlos / todomvc-bakeoff Public

Clone
git clone https://amadan.net/carlos/todomvc-bakeoff

Plain git — no account needed to clone.

Download

Download this file

1#!/usr/bin/env bash
2# Creates the builder's sparse worktree: everything shared, its own app
3# directory, and nothing of the reference fixture or other apps.
4# builders/worktree.sh <slug>
5set -euo pipefail
6slug=$1
7repo=$(cd "$(dirname "$0")/.." && pwd)
8wt="$repo/.worktrees/$slug"
9cd "$repo"
10git worktree add --no-checkout -b "app/$slug" "$wt" HEAD
11cd "$wt"
12git sparse-checkout set --no-cone '/*' '!/harness/refapp/' '!/apps/' "/apps/$slug/" '/apps/.keep'
13git checkout -q
14mkdir -p "apps/$slug"
15echo "$wt"
16