From 5c8ff218cb3ee5d3dd9119007ea8478626f6d2ce Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 14 Jun 2016 07:51:25 +0200 Subject: doc(changes): inform about new API Relates to #446 --- doc/source/changes.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc/source/changes.rst') diff --git a/doc/source/changes.rst b/doc/source/changes.rst index 9bf09065..3f5b8c50 100644 --- a/doc/source/changes.rst +++ b/doc/source/changes.rst @@ -2,11 +2,12 @@ Changelog ========= -2.0.6 - Fixes -============= +2.0.6 - Fixes and Features +========================== * Fix: TypeError about passing keyword argument to string decode() on Python 2.6. +* Feature: `setUrl API on Remotes `_ 2.0.5 - Fixes ============= -- cgit v1.2.3 From 5e02afbb7343a7a4e07e3dcf8b845ea2764d927c Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Tue, 14 Jun 2016 07:51:25 +0200 Subject: Fix for parsing non-ASCII chars in status lines --- doc/source/changes.rst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/source/changes.rst') diff --git a/doc/source/changes.rst b/doc/source/changes.rst index 3f5b8c50..9efbc0f0 100644 --- a/doc/source/changes.rst +++ b/doc/source/changes.rst @@ -5,6 +5,8 @@ Changelog 2.0.6 - Fixes and Features ========================== +* Fix: remote output parser now correctly matches refs with non-ASCII + chars in them * Fix: TypeError about passing keyword argument to string decode() on Python 2.6. * Feature: `setUrl API on Remotes `_ -- cgit v1.2.3 From 3ee291c469fc7ea6065ed22f344ed3f2792aa2ca Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Tue, 14 Jun 2016 22:44:11 +0200 Subject: Store raw path bytes in Diff instances MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, the following fields on Diff instances were assumed to be passed in as unicode strings: - `a_path` - `b_path` - `rename_from` - `rename_to` However, since Git natively records paths as bytes, these may potentially not have a valid unicode representation. This patch changes the Diff instance to instead take the following equivalent fields that should be raw bytes instead: - `a_rawpath` - `b_rawpath` - `raw_rename_from` - `raw_rename_to` NOTE ON BACKWARD COMPATIBILITY: The original `a_path`, `b_path`, etc. fields are still available as properties (rather than slots). These properties now dynamically decode the raw bytes into a unicode string (performing the potentially destructive operation of replacing invalid unicode chars by "�"'s). This means that all code using Diffs should remain backward compatible. The only exception is when people would manually construct Diff instances by calling the constructor directly, in which case they should now pass in bytes rather than unicode strings. See also the discussion on https://github.com/gitpython-developers/GitPython/pull/467 --- doc/source/changes.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/source/changes.rst') diff --git a/doc/source/changes.rst b/doc/source/changes.rst index 3f5b8c50..492d1055 100644 --- a/doc/source/changes.rst +++ b/doc/source/changes.rst @@ -5,6 +5,9 @@ Changelog 2.0.6 - Fixes and Features ========================== +* API: Diffs now have `a_rawpath`, `b_rawpath`, `raw_rename_from`, + `raw_rename_to` properties, which are the raw-bytes equivalents of their + unicode path counterparts. * Fix: TypeError about passing keyword argument to string decode() on Python 2.6. * Feature: `setUrl API on Remotes `_ -- cgit v1.2.3