From ddc5496506f0484e4f1331261aa8782c7e606bf2 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 23 Oct 2009 15:22:07 +0200 Subject: Implemented head methods: create, delete, rename, including tests --- TODO | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'TODO') diff --git a/TODO b/TODO index 7771cedf..6d548a15 100644 --- a/TODO +++ b/TODO @@ -73,7 +73,7 @@ Refs * Ability to create new heads and tags in the Repository ( but using the respective Reference Type ), i.e. Head.create(repo, name, commit = 'HEAD') or TagReference.create(repo, name -* Ability to rename references and tags +* Ability to rename references and tagsre * Ability to remove references and tags * Ability to checkout a reference - * Check whether we are the active reference HEAD.commit == self.commit @@ -83,6 +83,8 @@ Remote * 'push' method needs a test, a true test repository is required though, a fork of a fork would do :)! * Fetch should return heads that where updated, pull as well. +* Creation and deletion methods for references should be part of the interface, allowing + repo.create_head(...) instaed of Head.create(repo, ...). Its a convenience thing, clearly Repo ---- -- cgit v1.2.3 From 9b9776e88f7abb59cebac8733c04cccf6eee1c60 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 23 Oct 2009 16:07:45 +0200 Subject: Refs can now set the reference they are pointing to in a controlled fashion by writing their ref file directly --- TODO | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index 6d548a15..c2cc804b 100644 --- a/TODO +++ b/TODO @@ -67,15 +67,7 @@ Refs ----- * When adjusting the reference of a symbolic reference, the ref log might need adjustments as well. This is not critical, but would make things totally 'right' -* Reference Objects should be able to set the commit they are pointing to, making - the commit property read-write. Tags are a special case of this and would need - to be handled as well ! -* Ability to create new heads and tags in the Repository ( but using the respective - Reference Type ), i.e. Head.create(repo, name, commit = 'HEAD') or - TagReference.create(repo, name -* Ability to rename references and tagsre -* Ability to remove references and tags -* Ability to checkout a reference - + - same with adjusting references directly * Check whether we are the active reference HEAD.commit == self.commit Remote -- cgit v1.2.3 From 44a601a068f4f543f73fd9c49e264c931b1e1652 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 23 Oct 2009 16:51:59 +0200 Subject: Added notes about git-update-ref --- TODO | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'TODO') diff --git a/TODO b/TODO index c2cc804b..d44842f6 100644 --- a/TODO +++ b/TODO @@ -68,7 +68,12 @@ Refs * When adjusting the reference of a symbolic reference, the ref log might need adjustments as well. This is not critical, but would make things totally 'right' - same with adjusting references directly -* Check whether we are the active reference HEAD.commit == self.commit + !! - Could simply rewrite it using git-update-ref which works nicely for symbolic + and for normal refs !! +* Check whether we are the active reference HEAD.reference == this_ref + - NO: The reference dosnt need to know - in fact it does not know about the + main HEAD, so it may not use it. This is to be done in client code only. + Remove me Remote ------ -- cgit v1.2.3