Define RemoteConfig and RefSpec objects to parse remote blocks
commit708b180920047af3dbb569e2c20ead0e5cfed6d5
authorShawn O. Pearce <spearce@spearce.org>
Sat, 19 Apr 2008 02:29:21 +0000 (18 22:29 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 11 May 2008 05:16:34 +0000 (11 01:16 -0400)
tree489ab82725ff7b18e831f5ec1250323e41dfce28
parent6c847ad7ebf7760dc307660d9a9f71f459905a7f
Define RemoteConfig and RefSpec objects to parse remote blocks

To correctly handle all of the weird configuration rules within a
.git/config's remote section we need two entities: one describing
the remote, and one describing a lone ref specification ("src:dst"
pair).  The remote entity has to support more than one URL as Linus
long ago added the ability for C Git's push to upload to multiple
locations in a single command invocation.  The remote entity also
must support multiple pairs for the fetch and push specifications,
as users may configure more than one key in order to fetch (or push)
multiple branches.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit.test/tst/org/spearce/jgit/transport/RefSpecTestCase.java [new file with mode: 0644]
org.spearce.jgit.test/tst/org/spearce/jgit/transport/RemoteConfigTest.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/transport/RefSpec.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/transport/RemoteConfig.java [new file with mode: 0644]