Skip to main content

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
original_root = ../path/to/files

# 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 only tested using Python 3

  • Probably won’t work on Windows, due to the use of the ‘sh’ package and because there are dependencies on unix-style tools

  • Assumes destination files are python files

  • Emits python style comments on destination files

Pull requests are welcome to fix any of these problems. :)

Author

Dustin Spicuzza (dustin@virtualroadside.com)

Project details


Download files

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

Source Distribution

git-source-track-0.2.0.tar.gz (11.8 kB view details)

Uploaded Source

File details

Details for the file git-source-track-0.2.0.tar.gz.

File metadata

File hashes

Hashes for git-source-track-0.2.0.tar.gz
Algorithm Hash digest
SHA256 401cfc0d43538dc8f04e0fcbefa6c5844d47118ad4478825c3779cdeb9a4a610
MD5 e364289c707d4170f564c926eb39a5cf
BLAKE2b-256 ec2c1cbaf40bf8fb107feb10d7e2cf7490a5cb1a380ed6b0a847e57b5b1f7a40

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page