Add the remote.name.mirror flag to RemoteConfig
commite56d32681074c21c573143b5f4f62d318fbb713a
authorShawn O. Pearce <spearce@spearce.org>
Thu, 12 Feb 2009 23:54:38 +0000 (12 15:54 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 18 Feb 2009 21:22:40 +0000 (18 22:22 +0100)
tree29dcd2112501e5cd2efa3b1e409ed98e2126f7a4
parent6abbb77a95976acc5cedf5df2616ff97b5b01df5
Add the remote.name.mirror flag to RemoteConfig

This flag is currently only honored by "git push" to delete remote
refs if they are also gone on the source side.  It also causes the
default push spec to be "+refs/*:refs/*" if the user hasn't given
us any other push specs.

This change only implements the config file parsing for the mirror
flag, as there's still a chunk of code needed on the transport to
actually honor it.

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/transport/RemoteConfig.java