diff --git a/AUTHORS b/AUTHORS index c33e9a1..94ff4fe 100644 --- a/AUTHORS +++ b/AUTHORS @@ -21,3 +21,8 @@ Contributors * Dan Callaghan (`@danc86`_) * Max Bittker (`@MaxBittker`_) * Volo Zyko (`@volo-zyko`_) + * Robert Estelle (`@erydo`_) + * Dylan Grafmyre + * Povilas Kanapickas (`@p12tic`_) + * Snowhite (`@CirQ`_) + * earonesty (`@earonesty`_) diff --git a/HISTORY b/HISTORY index 82d9a1f..2726145 100644 --- a/HISTORY +++ b/HISTORY @@ -1,6 +1,15 @@ History ------- +0.6.0 - 2020-05-07 +---------------- + +* Updated PatchSet constructor to accept an optional (default to False) +metadata_only parameter to only keep diff metadata information without +the diff text data (better performance). +* Identify and track changed binary files. +* Added support for git rename syntax. + 0.5.5 - 2018-01-03 ------------------ diff --git a/README.rst b/README.rst index 75f7d7f..7823c4b 100644 --- a/README.rst +++ b/README.rst @@ -117,6 +117,15 @@ Finally, you can also instantiate :code:`PatchSet` passing any iterable (and enc >>> patch , , ]> +If you don't need to be able to rebuild the original unified diff input, you can pass +:code:`metadata_only=True` (defaults to :code:`False`), which should help making the +parsing more efficient: + +:: + + >>> from unidiff import PatchSet + >>> patch = PatchSet.from_filename('tests/samples/bzr.diff', encoding='utf-8', metadata_only=True) + References ---------- diff --git a/setup.py b/setup.py index 0997143..d3ba282 100644 --- a/setup.py +++ b/setup.py @@ -48,10 +48,10 @@ "Programming Language :: Python :: 2", 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.3', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', ], test_suite='tests', )