Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Git export command that reuses already existing exports and hardlinks files from them.

Project Description

This package implements a git export command that can be given a list of already exported worktrees and the tree SHAs these worktrees correspond too. For every file to export it then looks in the existing worktrees whether an identical file is already present and in that case hardlinks to the new export location instead of writing the same file again.

Use Case: A git based web deployment system that exports git trees to be served by a web server. Every new deployment is written to a new folder. After the export, the web server should start serving new requests from the new folder.

Be aware of the dangers of hardlinks. Hardlinks on linux do not have copy-on-write semantics! This command also does not verify the integrity of old exported trees. Use git reset –hard after this command to guarantee a correct export.

Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
git_export_hardlink-0.1.0.tar.gz (8.7 kB) Copy SHA256 Checksum SHA256 Source Feb 14, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting