Track changes between two git repositories
Project description
This is a tool that makes it easier to track source code changes between two repositories. This tool was originally developed for use by the RobotPy project, and made it easier for me to maintain a python port of various Java libraries.
This tool assumes there is an ‘original’ git repository, and a ‘destination’ git repository that is being validated. There is assumed a one to one relationship between various original and destination files. This tool provides quick and easy shortcuts to allow you to record metadata in the destination files that allow you to track changes in the source files:
Record which file it comes from
Mark the latest manually verified revision in the destination
Allow viewing the latest modifications to the source file (if any)
Update the revision metadata in the destination file
Install
pip install git-source-track
Configuration
Create a file called ‘.gittrack’ in the root of the destination git repository that has the following ini-style format:
[git-source-track] # Original files upstream_root = ../path/to/files # Commit in original repository upstream_commit = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx # Files that are being validated validation_root = path/to_files # (optional) Commits to exclude from git log output exclude_commits_file = foo/exclude_commits.txt
Now you can issue git commands and magic will happen!
Usage
See the help command for more information.
$ git source-track help
Known issues
Tool mostly tested using Python 3, but should work on Python 2
Probably won’t work on Windows, due to the use of the ‘sh’ package and because there are dependencies on unix-style tools * May work in Windows 10 posix environment
Assumes destination files are python files
Emits python style comments on destination files
Pull requests are welcome to fix any of these problems. :)
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-source-track-0.3.5.tar.gz
.
File metadata
- Download URL: git-source-track-0.3.5.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 406dd665d011d4c308ebfe17baa31a8b20c8443a07a88d3c973e38fe2750c9cd |
|
MD5 | 2110a2e4d5bc342349b9ee2c8d56e461 |
|
BLAKE2b-256 | 8c9e1980564dbbe40cf6a357d98df3218177700444cf044f52bd3255f1706f5e |