git-source-track


Namegit-source-track JSON
Version 0.4.0 PyPI version JSON
download
home_pagehttps://github.com/virtuald/git-source-track
SummaryTrack changes between two git repositories
upload_time2023-12-22 08:24:37
maintainer
docs_urlNone
authorDustin Spicuzza
requires_python
licenseApache 2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            git-source-track
================

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

    # (optional) Specify location to place validation line (first or last)
    default_location = first

    # (optional) Primary branch of upstream repository
    upstream_branch = main

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. :)

Author
------

Dustin Spicuzza (dustin@virtualroadside.com)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/virtuald/git-source-track",
    "name": "git-source-track",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Dustin Spicuzza",
    "author_email": "dustin@virtualroadside.com",
    "download_url": "https://files.pythonhosted.org/packages/5f/74/1aa3a1a5843d45037dc12df3fc0bd4dbeb521d6b17cc69fc6fb919b3d0d3/git-source-track-0.4.0.tar.gz",
    "platform": null,
    "description": "git-source-track\n================\n\nThis is a tool that makes it easier to track source code changes between two\nrepositories. This tool was originally developed for use by the RobotPy project,\nand made it easier for me to maintain a python port of various Java libraries.\n\nThis tool assumes there is an 'original' git repository, and a 'destination' git\nrepository that is being validated. There is assumed a one to one relationship\nbetween various original and destination files. This tool provides quick and\neasy shortcuts to allow you to record metadata in the destination files that\nallow you to track changes in the source files:\n\n* Record which file it comes from\n* Mark the latest manually verified revision in the destination\n* Allow viewing the latest modifications to the source file (if any)\n* Update the revision metadata in the destination file\n\nInstall\n-------\n\n::\n\n    pip install git-source-track\n\nConfiguration\n-------------\n\nCreate a file called '.gittrack' in the root of the destination git repository\nthat has the following ini-style format::\n    \n    [git-source-track]\n            \n    # Original files\n    upstream_root = ../path/to/files\n    \n    # Commit in original repository\n    upstream_commit = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n    \n    # Files that are being validated \n    validation_root = path/to_files\n    \n    # (optional) Commits to exclude from git log output\n    exclude_commits_file = foo/exclude_commits.txt\n\n    # (optional) Specify location to place validation line (first or last)\n    default_location = first\n\n    # (optional) Primary branch of upstream repository\n    upstream_branch = main\n\nNow you can issue git commands and magic will happen!\n\nUsage\n-----\n\nSee the help command for more information.\n\n::\n    \n    $ git source-track help\n\nKnown issues\n------------\n\n* Tool mostly tested using Python 3, but should work on Python 2\n* Probably won't work on Windows, due to the use of the 'sh' package and because\n  there are dependencies on unix-style tools\n  * May work in Windows 10 posix environment\n* Assumes destination files are python files\n* Emits python style comments on destination files\n\nPull requests are welcome to fix any of these problems. :)\n\nAuthor\n------\n\nDustin Spicuzza (dustin@virtualroadside.com)\n\n",
    "bugtrack_url": null,
    "license": "Apache 2.0",
    "summary": "Track changes between two git repositories",
    "version": "0.4.0",
    "project_urls": {
        "Homepage": "https://github.com/virtuald/git-source-track"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b0669df390dbc47c9271b1bbd6b91cddaf29915bb86557bdc02aec0e5f04f8cf",
                "md5": "06a30a45bc9bf9c32a2ade0bdfe3a3f7",
                "sha256": "f6b4f3e0714108b0038cb1e7465d8ad7be6ca2eb97815a14a008bd015b56a287"
            },
            "downloads": -1,
            "filename": "git_source_track-0.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "06a30a45bc9bf9c32a2ade0bdfe3a3f7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 15357,
            "upload_time": "2023-12-22T08:24:35",
            "upload_time_iso_8601": "2023-12-22T08:24:35.929380Z",
            "url": "https://files.pythonhosted.org/packages/b0/66/9df390dbc47c9271b1bbd6b91cddaf29915bb86557bdc02aec0e5f04f8cf/git_source_track-0.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5f741aa3a1a5843d45037dc12df3fc0bd4dbeb521d6b17cc69fc6fb919b3d0d3",
                "md5": "c8240e947d7bcbe0245003db69da82e5",
                "sha256": "65e48fccc0ca1521359ac23d920ac82778f8dda8969bebd15cb226780075e380"
            },
            "downloads": -1,
            "filename": "git-source-track-0.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c8240e947d7bcbe0245003db69da82e5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 15262,
            "upload_time": "2023-12-22T08:24:37",
            "upload_time_iso_8601": "2023-12-22T08:24:37.611935Z",
            "url": "https://files.pythonhosted.org/packages/5f/74/1aa3a1a5843d45037dc12df3fc0bd4dbeb521d6b17cc69fc6fb919b3d0d3/git-source-track-0.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-12-22 08:24:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "virtuald",
    "github_project": "git-source-track",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "git-source-track"
}
        
Elapsed time: 0.14638s