Add tagopt parsing support to RemoteConfig
commitf7497e12d754041d3ef15b019ce6769cb4f1fec3
authorShawn O. Pearce <spearce@spearce.org>
Tue, 13 May 2008 02:03:38 +0000 (12 22:03 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sat, 17 May 2008 03:59:50 +0000 (16 23:59 -0400)
tree624a71a2dd8262259329b435f7212aa268fc7079
parent5c547a9ac122c3fd311add483ac031cebf4966f8
Add tagopt parsing support to RemoteConfig

C Git permits the user to specify how tags should be handled during
fetch by setting remote.*.tagopt in their .git/config.  Our TagOpt
enum represents this same range of values, along with the translation
to/from the C Git preferred setting, which for historical reasons
is a GNU style --long-option rather than a simple string.

We don't actually honor this setting yet in our fetch implementation,
but we can read and write it now.

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