bin/braid in braid-1.0.15 vs bin/braid in braid-1.0.16
- 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_path, :option_branch, :option_revision, :option_full, :option_verbose
+ mixin :argument_url, :optional_path, :option_branch, :option_revision, :option_full, :option_verbose, :option_remote_path
run {
Braid.verbose = verbose
- Braid::Command.run(:add, url, {'path' => path, 'branch' => branch, 'revision' => revision, 'full' => full})
+ Braid::Command.run(:add, url, {'path' => path, 'branch' => branch, 'revision' => revision, 'full' => full, 'remote_path' => remote_path})
}
}
mode(:update) {
description <<-TXT
@@ -111,10 +111,11 @@
run {
options = {
'keep' => keep
}
+ Braid.verbose = verbose
Braid::Command.run(:diff, path, options)
}
}
mode(:push) {
@@ -200,9 +201,18 @@
mixin(:option_branch) {
option(:branch, :b) {
optional
argument :required
desc 'remote branch name'
+ attr
+ }
+ }
+
+ mixin(:option_remote_path) {
+ option(:remote_path, :p) {
+ optional
+ argument :required
+ desc 'remote path'
attr
}
}
mixin(:option_revision) {