git-archive
Create, extract, list, and verify Git repository archives in tar or zip formats. Manage repository snapshots from branches, tags, or commits with submodule support and integrity checking.
Instructions
Archive operations for Git repositories. Supports archive creation, extraction, listing, and verification.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | The archive operation to perform | |
archivePath | No | Path to the archive file | |
checkIntegrity | No | Check archive integrity during verification (default: false) | |
format | No | Archive format (default: tar) | |
includeSubmodules | No | Include submodules in archive (default: false) | |
outputPath | No | Output path for archive creation | |
overwrite | No | Overwrite existing files during extraction (default: false) | |
prefix | No | Prefix for archive contents | |
projectPath | Yes | Path to the Git repository (required) | |
ref | No | Git reference to archive (branch, tag, commit, default: HEAD) | |
showDetails | No | Show detailed file information when listing (default: false) | |
targetPath | No | Target path for extraction |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"description": "The archive operation to perform",
"enum": [
"create",
"extract",
"list",
"verify"
],
"type": "string"
},
"archivePath": {
"description": "Path to the archive file",
"type": "string"
},
"checkIntegrity": {
"description": "Check archive integrity during verification (default: false)",
"type": "boolean"
},
"format": {
"description": "Archive format (default: tar)",
"enum": [
"tar",
"zip"
],
"type": "string"
},
"includeSubmodules": {
"description": "Include submodules in archive (default: false)",
"type": "boolean"
},
"outputPath": {
"description": "Output path for archive creation",
"type": "string"
},
"overwrite": {
"description": "Overwrite existing files during extraction (default: false)",
"type": "boolean"
},
"prefix": {
"description": "Prefix for archive contents",
"type": "string"
},
"projectPath": {
"description": "Path to the Git repository (required)",
"type": "string"
},
"ref": {
"description": "Git reference to archive (branch, tag, commit, default: HEAD)",
"type": "string"
},
"showDetails": {
"description": "Show detailed file information when listing (default: false)",
"type": "boolean"
},
"targetPath": {
"description": "Target path for extraction",
"type": "string"
}
},
"required": [
"action",
"projectPath"
],
"type": "object"
}