Change Ref to track name, not full file location
commit0ea6f91747500a163b2a22314b71d0cd5aa26489
authorShawn O. Pearce <spearce@spearce.org>
Thu, 17 May 2007 01:56:17 +0000 (16 21:56 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 17 May 2007 01:56:17 +0000 (16 21:56 -0400)
treec77d4bb7a76f0ca0049bd3036118259675bf291d
parent140113249b2bff8d010c6fbf0de378f2b8df4ecf
Change Ref to track name, not full file location

Typically in Git we talk about refs as being relative to some
particular repository, hence their actual location on disk can
vary based on where they are stored.  Core Git also supports a
"packed-refs" file that allows multiple refs to be stored in
one file stream; in such a case the refs are distinct by name
but share the same location on disk.

Storing the name instead of the file location makes the Ref
class more flexible..

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/Ref.java
org.spearce.jgit/src/org/spearce/jgit/lib/RefLock.java
org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java