From 06c9c919707ba4116442ca53ac7cf035540981f2 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 11 Sep 2016 18:30:21 +0200 Subject: fix(Head): checkout() handles detached head It's not optimal, as we can now return one of two types which are only compatible in the most basic ways. However, it is better than before, I presume. Fixes #510 --- 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 62f8ab45..fcd8240c 100644 --- a/doc/source/changes.rst +++ b/doc/source/changes.rst @@ -7,6 +7,8 @@ Changelog * `tag.commit` will now resolve commits deeply. * `Repo` objects can now be pickled, which helps with multi-processing. +* `Head.checkout()` now deals with detached heads, which is when it will return + the `HEAD` reference instead. * `DiffIndex.iter_change_type(...)` produces better results when diffing 2.0.8 - Features and Bugfixes -- cgit v1.2.1