native macOS codings agent orchestrator
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

hooks

khoi 5f64e22b 0c2c0795

+4 -36
-27
.githooks/pre-commit
··· 1 - #!/bin/sh 2 - set -e 3 - 4 - files_file=$(mktemp -t supacode-pre-commit.XXXXXX) 5 - trap 'rm -f "$files_file"' EXIT 6 - 7 - git diff --cached --name-only -z --diff-filter=ACMR -- '*.swift' > "$files_file" 8 - if [ ! -s "$files_file" ]; then 9 - exit 0 10 - fi 11 - 12 - unstaged=0 13 - while IFS= read -r -d '' file; do 14 - if ! git diff --quiet -- "$file"; then 15 - echo "unstaged changes present in: $file" 16 - unstaged=1 17 - fi 18 - done < "$files_file" 19 - if [ "$unstaged" -ne 0 ]; then 20 - echo "stash or stage all Swift changes before committing" 21 - exit 1 22 - fi 23 - 24 - make format FILES_FILE="$files_file" 25 - make lint FILES_FILE="$files_file" 26 - 27 - xargs -0 git add -- < "$files_file"
-5
Makefile
··· 93 93 mise exec -- swiftlint --fix --quiet; \ 94 94 fi 95 95 96 - install-git-hooks: # Install git hooks to format/lint staged files 97 - @mkdir -p "$(CURRENT_MAKEFILE_DIR)/.githooks" 98 - @git config core.hooksPath "$(CURRENT_MAKEFILE_DIR)/.githooks" 99 - @chmod +x "$(CURRENT_MAKEFILE_DIR)/.githooks/pre-commit" 100 - 101 96 update-wt: # Download git-wt binary to Resources 102 97 @mkdir -p "$(CURRENT_MAKEFILE_DIR)/Resources/git-wt" 103 98 @curl -fsSL "https://raw.githubusercontent.com/khoi/git-wt/refs/heads/main/wt" -o "$(CURRENT_MAKEFILE_DIR)/Resources/git-wt/wt"
+2 -2
supacode/Features/Repositories/Views/WorktreeDetailView.swift
··· 191 191 if let model = PullRequestStatusModel(snapshot: toolbarState.worktreeInfoSnapshot) { 192 192 PullRequestStatusButton(model: model).padding(.horizontal) 193 193 } else { 194 - XcodeStyleStatusView().padding(.horizontal) 194 + MiddleStatusView().padding(.horizontal) 195 195 } 196 196 Divider() 197 197 RunScriptToolbarButton( ··· 367 367 if let prModel { 368 368 PullRequestStatusButton(model: prModel).padding(.horizontal) 369 369 } else { 370 - XcodeStyleStatusView().padding(.horizontal) 370 + MiddleStatusView().padding(.horizontal) 371 371 } 372 372 } 373 373 ToolbarItem(placement: .status) {
+2 -2
supacode/Features/Repositories/Views/XcodeStyleToolbarViews.swift
··· 1 1 import SwiftUI 2 2 3 - struct XcodeStyleStatusView: View { 3 + struct MiddleStatusView: View { 4 4 private static let morningMessages = [ 5 5 "Rise and shine!", 6 6 "Fresh start, fresh code", ··· 294 294 } 295 295 296 296 #Preview("Status View") { 297 - XcodeStyleStatusView() 297 + MiddleStatusView() 298 298 .padding() 299 299 } 300 300