feat(git): working copy of a repository, with a token that never touches the disk #68

Merged
crapougnax merged 1 commit from feat/67-git-working-copy into develop 2026-11-17 22:12:52 +00:00
Member

Closes #67.

Adds GitWorkingCopy to @quatrain/git: a directory kept in step with a branch of a remote (prepare, refresh, status, commit, push), for applications that edit the files of a repository on disk on behalf of its owner.

  • Git runs without a shell, and ignores the configuration, the credential helpers and the hooks of the machine.
  • The token is an HTTP header given through the environment of the git process and scoped to the remote: not in the address, the configuration, the arguments nor the error messages.
  • HTTPS only by default, no redirection followed, symbolic links checked out as plain files.
  • History is never rewritten: a diverged branch is an error.
  • The package gets a README, in English and French.

Verified

  • 14 tests on local repositories: clone, empty remote, commit of given paths, push, refresh, divergence, paths outside the working copy, file names and messages holding shell syntax, symbolic links, hooks, protocols, token kept out of the configuration and of error messages, concurrency.
  • Against the forge, read only: a private repository is fetched with a token and refused without one or with a wrong one.
  • Not verified against GitHub.

🤖 Generated with Claude Code

Closes #67. Adds `GitWorkingCopy` to `@quatrain/git`: a directory kept in step with a branch of a remote (`prepare`, `refresh`, `status`, `commit`, `push`), for applications that edit the files of a repository on disk on behalf of its owner. - Git runs without a shell, and ignores the configuration, the credential helpers and the hooks of the machine. - The token is an HTTP header given through the environment of the git process and scoped to the remote: not in the address, the configuration, the arguments nor the error messages. - HTTPS only by default, no redirection followed, symbolic links checked out as plain files. - History is never rewritten: a diverged branch is an error. - The package gets a README, in English and French. ## Verified - 14 tests on local repositories: clone, empty remote, commit of given paths, push, refresh, divergence, paths outside the working copy, file names and messages holding shell syntax, symbolic links, hooks, protocols, token kept out of the configuration and of error messages, concurrency. - Against the forge, read only: a private repository is fetched with a token and refused without one or with a wrong one. - Not verified against GitHub. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(git): working copy of a repository, with a token that never touches the disk (#67)
All checks were successful
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (push) Successful in 4m56s
Quatrain Core CI / Monorepo Build, Tests & Quality Audit (pull_request) Successful in 5m1s
Quatrain Core CI / Publish Changed Packages to npm (push) Has been skipped
Quatrain Core CI / Publish Changed Packages to npm (pull_request) Has been skipped
2290948fbe
GitWorkingCopy keeps a directory in step with a branch of a remote: prepare,
refresh, status, commit, push. Git runs without a shell and without the
configuration, credential helpers and hooks of the machine. The token goes
through the environment of the process as an HTTP header scoped to the remote.

Closes #67

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
crapougnax merged commit 5a9dc77f58 into develop 2026-11-17 22:12:52 +00:00
crapougnax deleted branch feat/67-git-working-copy 2026-11-17 22:12:52 +00:00
Sign in to join this conversation.
No description provided.