Cache git clone and git submodules in a cache directory.
Project description
Caches git repositories locally. Every time a build happens, it uses local caches for pulling. Submodules especially, which are harder to intercept for caching.
Will also inflate submodules recursively.
With 8 submodules, a total of 150MB of data to clone:
Before caching: 13.79s user 6.36s system 18% cpu 1:49.45 total
After caching: 2.12s user 2.07s system 25% cpu 16.310 total
Cached repositories are stored in ~/.git-cow by default. You can override this by setting $GIT_COW.
# Installation
Either:
with pypi: sudo pip install git-cachecow
Or:
Clone git-cachecow and add the directory to your $PATH.
# Usage
How to clone a repository with submodules:
git scclone git://github.com/grahamc/git-multi.git
## git-cclone git cclone repo_uri [clone_to [hash]]
## git-submodule-describe
Outputs submodule data into parsable format
` git://github.com/nationalfield/symfony.git lib/vendor/symfony aec67b5e7ba148c79b884b86988e42f9f9483bcd git@github.com:nationalfield/pheanstalk.git lib/vendor/pheanstalk 5b38924730b70ea720f760369899398479e2ea13 git@github.com:nationalfield/tinymce.git web/js/tiny_mce 0c3da0cc9e33df0f2b82f70bf7e24405de216bee `
- ## git-submodule-cclone
Clones all the submodules recursively at their defined location and hashes.
[![Build Status](https://secure.travis-ci.org/grahamc/git-cachecow.png)](http://travis-ci.org/grahamc/git-cachecow)
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
File details
Details for the file git-cachecow-0.1.tar.gz
.
File metadata
- Download URL: git-cachecow-0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cdfb75fa452166b7a03995e797f80791c30e8bbf07cba7ec51de608a71a616e |
|
MD5 | 5db56ad1900ea1cf2f605ae284bcc99d |
|
BLAKE2b-256 | ba8424440101140d678af674238f63764dd58af4f52a6ad35175ec451d85d29b |