From 572ace094208c28ab1a8641aedb038456d13f70b Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 3 Nov 2009 17:44:13 +0100 Subject: Now using git-update-ref and git-symbolic-ref to update references with reflog support. This should be manually implemented though for more performance, what it does is relatively easy --- TODO | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index 5fa2477d..0fe33050 100644 --- a/TODO +++ b/TODO @@ -80,11 +80,12 @@ Index 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 - !! - Could simply rewrite it using git-update-ref which works nicely for symbolic - and for normal refs !! +* For performance reasons it would be good to reimplement git-update-ref to be + fully equivalent to what the command does. Currently it does some checking and + handles symbolic refs as well as normal refs, updating the reflog if required. +* I have read that refs can be symbolic refs as well which would imply the need + to possibly dereference them. This makes sense as they originally where possibly + a symbolic link * 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. @@ -92,6 +93,7 @@ Refs * Reference.from_path may return a symbolic reference although it is not related to the reference type. Split that up into two from_path on each of the types, and provide a general method outside of the type that tries both. +* Making the reflog available might be useful actually. Remote ------ -- cgit v1.2.3