Request Format
Like commit-pack, the payload is newline-delimited JSON. Send a metadata object first, followed by one or morediff_chunk entries.
Request Body Fields
Destination branch
Commit message
Object with
name and emailGuard ensuring the branch tip matches before applying the patch
Seed when the target branch does not exist yet
Object with
name and emailSame semantics as commit-pack
Same semantics as commit-pack
Diff Chunks
diff_chunk.datacontains base64-encoded diff bytes; decoded payloads must be ≤ 4 MiB- Chunks are streamed sequentially; set
"eof": trueon the final chunk - The combined diff must be compatible with
git apply --cached --binary(include file headers, mode lines, and hunk metadata)
JWT Requirements
- The JWT must include the repository in the
repoclaim - Requires
git:writescope
Response
The service returns the same schema as commit-pack responses.Notes
result.successisfalsewhen the diff cannot be applied (for example, conflicts or empty diffs) andstatusreflects the mapped reason (conflict,precondition_failed, etc.)
Error Responses
Branch doesn’t exist
Invalid JWT or missing
git:write scopeInvalid request format or diff cannot be applied