git_archive
Generate a Git repository archive in zip or tar format by specifying the repository path, output path, and optional parameters like prefix and tree-ish.
Instructions
Create a git archive (zip or tar).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
format | No | Archive format (zip or tar) | zip |
output_path | Yes | Output path for the archive | |
prefix | No | Prefix for files in the archive | |
repo_path | Yes | The path to the local Git repository | |
treeish | No | Tree-ish to archive (default: HEAD) | HEAD |
Input Schema (JSON Schema)
{
"properties": {
"format": {
"default": "zip",
"description": "Archive format (zip or tar)",
"enum": [
"zip",
"tar"
],
"type": "string"
},
"output_path": {
"description": "Output path for the archive",
"type": "string"
},
"prefix": {
"description": "Prefix for files in the archive",
"type": "string"
},
"repo_path": {
"description": "The path to the local Git repository",
"type": "string"
},
"treeish": {
"default": "HEAD",
"description": "Tree-ish to archive (default: HEAD)",
"type": "string"
}
},
"required": [
"repo_path",
"output_path"
],
"type": "object"
}