Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scivision/meldutils
Meld utilities in Python, useful for updating templates across large number of Git repos and projects
https://github.com/scivision/meldutils
meld
Last synced: 16 days ago
JSON representation
Meld utilities in Python, useful for updating templates across large number of Git repos and projects
- Host: GitHub
- URL: https://github.com/scivision/meldutils
- Owner: scivision
- License: mit
- Created: 2019-05-16T00:42:36.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-01-28T06:48:51.000Z (11 months ago)
- Last Synced: 2024-12-02T00:25:07.351Z (about 1 month ago)
- Topics: meld
- Language: Python
- Size: 37.1 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Graphical recursive file comparison
[![DOI](https://zenodo.org/badge/186922933.svg)](https://zenodo.org/badge/latestdoi/186922933)
[![Actions Status](https://github.com/scivision/meldutils/workflows/ci/badge.svg)](https://github.com/scivision/meldutils/actions)
[![PyPi Download stats](http://pepy.tech/badge/meldutils)](http://pepy.tech/project/meldutils)Using
[Meld](https://meldmerge.org)
or
[Visual Studio Code](https://code.visualstudio.com/)
to accomplish file differencing.
Useful for managing large numbers of repos / projects, particularly for templates.```sh
python -m meldutils project/myfile.f90 ~/code
```graphically compares `project/myfile.f90` with every other file of the same name recursively under `~/code`.
Particularly on Windows, the GUI may be invoked, but you don't see any difference.
This is often because only one of the two files as a trailing `\n` or `\r\n`.
Meld won't show any difference, even with all text filters off.
Because of how Python `filecmp.cmp` works, there isn't a blazing fast simple solution to this.
A possibly slow solution would be using str.replace.So just realize it's OK, close Meld when it shows no difference and happy comparing!
[Reference](https://github.com/dsindex/blog/wiki/%5Bpython%5D-string-compare-disregarding-white-space)