From 58e2157ad3aa9d75ef4abb90eb2d1f01fba0ba2b Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 22 Oct 2009 23:20:16 +0200 Subject: Added SymbolicReference and HEAD type to better represent these special types of references and allow special handling Head.reset now is an instance method of HEAD type Concatenated all reference specific tests into test_refs started to fix tests breaking now because of changed interface --- TODO | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index 3e743e65..5ec71dc3 100644 --- a/TODO +++ b/TODO @@ -58,14 +58,12 @@ Index creating several tree objects, so in the end it might be slower. Hmm, probably its okay to use the command unless we go c(++) - -Head.reset ----------- -* Should better be an instance method. Problem was that there is no class specifying - the HEAD - in a way reset would always effect the active branch. - Probably it would be okay to have a special type called SymbolicReference - which represents items like HEAD. These could naturally carry the reset - instance method. +Refs +----- +* If the HEAD is detached as it points to a specific commit, its not technically + a symbolic reference anymore. Currently, we cannot handle this that well + as we do not check for this case. This should be added though as it is + valid to have a detached head in some cases. Remote ------ -- cgit v1.2.3 From b7a5c05875a760c0bf83af6617c68061bda6cfc5 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 22 Oct 2009 23:31:26 +0200 Subject: Adjusted tests to deal with API changes --- TODO | 2 ++ 1 file changed, 2 insertions(+) (limited to 'TODO') diff --git a/TODO b/TODO index 5ec71dc3..c202fcb8 100644 --- a/TODO +++ b/TODO @@ -64,6 +64,8 @@ Refs a symbolic reference anymore. Currently, we cannot handle this that well as we do not check for this case. This should be added though as it is valid to have a detached head in some cases. +* Allow to set SymbolicReferences to a specific Head Reference. This is like + a git-reset --soft Remote ------ -- cgit v1.2.3 From d1bd99c0a376dec63f0f050aeb0c40664260da16 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 23 Oct 2009 00:13:09 +0200 Subject: SymbolicReferences can now change they references safely as I think and well controlled, including test. Added commit method which will return the commit for detached symbolic refs or for normal symbolic refs which is quite convenient --- TODO | 2 -- 1 file changed, 2 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index c202fcb8..5ec71dc3 100644 --- a/TODO +++ b/TODO @@ -64,8 +64,6 @@ Refs a symbolic reference anymore. Currently, we cannot handle this that well as we do not check for this case. This should be added though as it is valid to have a detached head in some cases. -* Allow to set SymbolicReferences to a specific Head Reference. This is like - a git-reset --soft Remote ------ -- cgit v1.2.3