Git Archive Deep
Project description
Deep archive command for git
Features
- Archive a git repository with all sub-modules.
Installation
You can install Git Archive Deep via pip from PyPI:
$ pip install git-archive-deep
Usage
Let's say you have a repository in a directory MyTool/
and you want to archive version 2.1, which is tagged v2.1
.
git archive-deep v2.1 ./MyTool
This will create a zip file named MyTool-v2.1.zip
that contains the repository along with its sub-modules.
This tool is similar to git-archive-all, but it allows you to specify a
git ref instead of archiving the currently checked out commit. It is really just simple wrapper around Git that calls
git archive <ref> .
in the repository directory, but then reads .gitmodules
(if it exists), determines the SHA1 for each
sub-module using git rev-parse
(calling git rev-parse v2.1:path/to/submodule
will print the SHA1 for the commit that is checked out in submodule
located at path/to/submodule
for version v2.1
), and then just calls itself for each sub-module recursively, merging each archive into the main repo.
Contributing
Contributions are very welcome. To learn more, see the Contributor Guide.
License
Distributed under the terms of the MIT license, Git Archive Deep is free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Credits
This project was generated from @cjolowicz's Hypermodern Python Cookiecutter template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file git-archive-deep-0.1.2.tar.gz
.
File metadata
- Download URL: git-archive-deep-0.1.2.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.8.5 Linux/5.15.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83806f9ce5ab3d21f0893ff782c10e996d46463467f11ceecb2c237a8515843a |
|
MD5 | d3d08f5920779849ce6f2fad30f182ea |
|
BLAKE2b-256 | 335eb4c9a8c650b51906be4474bb025e05385659cfbafe1a681444b8a3860bd8 |
File details
Details for the file git_archive_deep-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: git_archive_deep-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.8.5 Linux/5.15.0-41-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a847680639e5e6a76b341da53fb3679f460a233b5c7b0d2209248bd386d5ca03 |
|
MD5 | b1c4798c93a9acc2d1714cad63a9dc4f |
|
BLAKE2b-256 | 5b78c37952bed1aa2beccd43b5447a78bda596e23f7aa9fda81aa13f90a7ee19 |