Add RefSpec.expandFromDestination for reverse mappings
commit6abbb77a95976acc5cedf5df2616ff97b5b01df5
authorShawn O. Pearce <spearce@spearce.org>
Thu, 12 Feb 2009 23:54:37 +0000 (12 15:54 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 18 Feb 2009 21:22:39 +0000 (18 22:22 +0100)
tree2be6a48fcbae843294bba5d0bfe51e9581693b24
parent0414c6762fb91d04a52509dd8d0829774d304904
Add RefSpec.expandFromDestination for reverse mappings

This makes it easy to loop through the destination's refs and see
if any match up to a source name which doesn't actually exist in
the set of available source refs.  In such cases, we may want to
delete the destination ref.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit.test/tst/org/spearce/jgit/transport/RefSpecTestCase.java
org.spearce.jgit/src/org/spearce/jgit/transport/RefSpec.java