This lib is an implementation of the `git diff` tool in Python using the Myers Difference algorithm.
Project description
# Python git diff clone
This lib is an implementation of the `git diff` tool in Python using the Myers Difference algorithm.
## Usage
You can run the following command:
```bash
$ python diff.py case_one.txt case_two.txt
```
This will show the diff script to go from file A to file B. You can test out the command with the `case_one.txt` and `case_two.txt` files included in the repository.
To have the command available at all times, make sure the script `diff.py` is executable and then include it in your `$PATH`.
## Analysis
For an extended analysis, refer to the PDF in this repo titled "The Myers Difference Algorithm for Version Control Systems".
### generete lib: python setup.py sdist
### send to pypi: twine upload dist/*
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
diff_as_git-0.0.1.tar.gz
(5.0 kB
view details)
File details
Details for the file diff_as_git-0.0.1.tar.gz.
File metadata
- Download URL: diff_as_git-0.0.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc17cc76250d3ac73c255d50865a17119abdb5f8e5b56fb1ee527aae5b258c39
|
|
| MD5 |
0ef6d211f04475a4621ae8441c331960
|
|
| BLAKE2b-256 |
bd2b0c823eaed93d07ad821a742d9e5e76a6ba3ccf1f8182292a30019ec8b602
|