Command line helper to Git split one file into several preserving history
Project description
https://github.com/idlesign/gitfilesplit
Description
Command line helper to Git split one file into several preserving history
Split myhugefile.py into three: smaller.py, another.py and some.py using command line:
$ gitfilesplit myhugefile.py smaller.py another.py some.py
The same in Python:
from gitfilesplit.toolbox import split
split(
source='myhugefile.py',
# And with subdirectories:
targets=['smaller.py', 'sub1/another.py', 'sub2/some.py']
)
Under the hood it will create several branches in which source file is moved to target locations. After that octopus merge of these branches will be performed and temporary branches removed.
Requirements
Git
Python 3.6+
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
gitfilesplit-1.0.0.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file gitfilesplit-1.0.0.tar.gz
.
File metadata
- Download URL: gitfilesplit-1.0.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dc33d99177145f5b3f9a3fe65082f2d493bb5b3b0d6a5ac847c061a57867e12 |
|
MD5 | e6c4f9219fa014bdeaac055503f526f4 |
|
BLAKE2b-256 | 10aff41d9a33f44dfbbbcee8c6ab0d0772d0b51b832902872c577d74f5ffae71 |
File details
Details for the file gitfilesplit-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: gitfilesplit-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/2.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2bd3acae8ebc2146e77f30f941d27359b0d558603e0e885e7e454f5076e5cca |
|
MD5 | 43a23d4d408dd86d9e85f33ac86d39cb |
|
BLAKE2b-256 | a64afe296c27c9d5649ac0ef07b78b6cb43e49891815a2fbf48ddae17c995121 |