bin/braid in braid-1.0.17 vs bin/braid in braid-1.0.18
- old
+ new
@@ -38,15 +38,15 @@
examples <<-TXT
. braid add http://remote/path.git local/dir
. braid add http://remote/path local/dir
TXT
- mixin :argument_url, :optional_local_path, :option_branch, :option_revision, :option_verbose, :option_path
+ mixin :argument_url, :optional_local_path, :option_branch, :option_tag, :option_revision, :option_verbose, :option_path
run {
Braid.verbose = verbose
- Braid::Command.run(:add, url, {'path' => local_path, 'branch' => branch, 'revision' => revision, 'remote_path' => path})
+ Braid::Command.run(:add, url, {'path' => local_path, 'branch' => branch, 'tag' => tag, 'revision' => revision, 'remote_path' => path})
}
}
mode(:update) {
description <<-TXT
@@ -63,14 +63,16 @@
examples <<-TXT
. braid update
. braid update local/dir
TXT
- mixin :optional_local_path, :option_revision, :option_head, :option_verbose, :option_keep_remote
+ mixin :optional_local_path, :option_head, :option_revision, :option_tag, :option_branch, :option_verbose, :option_keep_remote
run {
options = {
+ 'branch' => branch,
+ 'tag' => tag,
'revision' => revision,
'head' => head,
'keep' => keep
}
Braid.verbose = verbose
@@ -189,15 +191,24 @@
mixin(:option_branch) {
option(:branch, :b) {
optional
argument :required
- desc 'remote branch name'
+ desc 'remote branch name to track'
attr
}
}
+ mixin(:option_tag) {
+ option(:tag, :t) {
+ optional
+ argument :required
+ desc 'remote tag name to track'
+ attr
+ }
+ }
+
mixin(:option_path) {
option(:path, :p) {
optional
argument :required
desc 'remote path'
@@ -215,10 +226,10 @@
}
mixin(:option_head) {
option(:head) {
optional
- desc 'mirror head'
+ desc 'unused option'
attr
}
}
mixin(:option_verbose) {