Sort Ref objects by OrigName and not Name
commit5b835224c07cc881b7c658559c0c7ea23176a8be
authorShawn O. Pearce <spearce@spearce.org>
Tue, 23 Dec 2008 22:56:43 +0000 (23 14:56 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 4 Jan 2009 00:01:51 +0000 (4 01:01 +0100)
tree59b32feaa228fad76b4ee26c052e54d5aae1cbb3
parent26518f71efcdaee49b6e5cc764c8a171ab606f26
Sort Ref objects by OrigName and not Name

This avoids sorting symrefs by their target; instead we sort the
symref by the symref's own name, thus placing "HEAD" before the
standard "refs/heads/..." namespace.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/lib/RefComparator.java