You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .skills/swift-git/SKILL.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,15 @@ description: "Repository-focused skill for building, testing, and agent-safe ope
8
8
Purpose
9
9
- Provide concise, actionable instructions and examples for automated agents and humans working with this repository.
10
10
- Expose the small set of repository-specific commands and agent rules an automated worker needs so the runtime can make safe decisions without loading large docs.
11
+
- Include the progress-callback APIs for clone/pull so agents can guide UI work and cancellation behavior.
11
12
12
13
When to use this skill (trigger examples)
13
14
- "Build the package"
14
15
- "Run tests"
15
16
- "Run a single test"
16
17
- "Where are the build/test commands"
17
18
- "What agent rules should I follow for commits and CI"
19
+
- "Add progress callbacks for clone or pull"
18
20
19
21
Quick commands (do not execute without user approval)
20
22
- Build (debug):
@@ -27,6 +29,28 @@ Quick commands (do not execute without user approval)
27
29
- swift test --filter ParseTests.testChangedEntryIndex_valid
- public enum GitProgressStage { case network, indexing, checkout, done }
70
+
- public enum GitProgressAction { case proceed, cancel }
71
+
64
72
Models (examples)
65
73
- GitStatus (Sources/SwiftGit/Custom/models/GitStatus.swift): public struct GitStatus with properties branch, changed, renamedCopied, unmerged, untracked. Several nested types represent entries and styles.
- Most git subcommands are exposed as public extensions on Git or Repository under Sources/SwiftGit/Custom/commands/*. Each file shapes a coherent sub-API (clone, commit, push, fetch, log, status, tag, stash, etc.).
84
+
- Clone and pull now have progress callback overloads (see git-commands-clone.swift and git-commands-pull.swift).
76
85
77
86
Tests that reference public APIs
78
87
- Tests live under Tests/SwiftGitTests. Key files that exercise public APIs include:
Copy file name to clipboardExpand all lines: .skills/swift-git/references/apis/Repository.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ Public declaration highlights
7
7
- public init(git: Git, url: URL)
8
8
- public init(git: Git, path: String)
9
9
- Many repository-scoped command helpers are defined as public extensions across Sources/SwiftGit/Custom/commands/*. These include clone, commit, push, status, tag, stash, fetch, pull, merge, etc.
10
+
- Pull includes progress callback overloads (GitProgress / GitProgressAction).
10
11
11
12
Summary
12
13
Repository is a lightweight wrapper that provides convenience methods executing git commands within a repository directory using an associated Git instance.
0 commit comments