author | Linus Torvalds <torvalds@osdl.org> | |
Tue, 12 Sep 2006 03:17:35 +0000 (20:17 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 18 Sep 2006 02:09:11 +0000 (19:09 -0700) | ||
commit | ed378ec7e85fd2c5cfcc7bd64b454236357fdd97 | |
tree | 76a1666618aff73fd9184a533273b1e083858a6d | tree | snapshot |
parent | b37a562a1097af7403c649a5f903a93acaf279e8 | commit | diff |
Make ref resolution saner
The old code used to totally mix up the notion of a ref-name and the path
that that ref was associated with. That was not only horribly ugly (a
number of users got the path, and then wanted to try to turn it back into
a ref-name again), but it fundamnetally doesn't work at all once we do any
setup where a ref doesn't have a 1:1 relationship with a particular
pathname.
This fixes things up so that we use the ref-name throughout, and only
turn it into a pathname once we actually look it up in the filesystem.
That makes a lot of things much clearer and more straightforward.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
The old code used to totally mix up the notion of a ref-name and the path
that that ref was associated with. That was not only horribly ugly (a
number of users got the path, and then wanted to try to turn it back into
a ref-name again), but it fundamnetally doesn't work at all once we do any
setup where a ref doesn't have a 1:1 relationship with a particular
pathname.
This fixes things up so that we use the ref-name throughout, and only
turn it into a pathname once we actually look it up in the filesystem.
That makes a lot of things much clearer and more straightforward.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-fmt-merge-msg.c | diff | blob | history | |
builtin-init-db.c | diff | blob | history | |
builtin-show-branch.c | diff | blob | history | |
builtin-symbolic-ref.c | diff | blob | history | |
cache.h | diff | blob | history | |
refs.c | diff | blob | history | |
sha1_name.c | diff | blob | history |