summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorBundlerbot <bot@bundler.io>2019-04-23 19:30:19 +0000
committerBundlerbot <bot@bundler.io>2019-04-23 19:30:19 +0000
commit58357f5bab5e7869d0532041bb44325d1832b036 (patch)
treee118b3e14015e0d3230aa653949ef89250d42d34 /man
parent69bf2bf121dccb750d0d537ff9f7a57473b0120b (diff)
parent2aab1fd231f2af3a0f0a5888a7d5bb5cd079ceb6 (diff)
downloadbundler-58357f5bab5e7869d0532041bb44325d1832b036.tar.gz
Merge #7127
7127: Add git and branch options to `bundle add` r=deivid-rodriguez a=tokachev Closes #6841 These changes will allow to add a gem with the git or branch options. ``` bundle add redis --git "https://github.com/redis/redis-rb" --branch "staging" ``` The result in Gemfile will be: ``` gem "redis", "~> 4.0", :git => "https://github.com/redis/redis-rb", :branch => "staging" ``` Co-authored-by: Baumgarten <baumgarten@localhost.localdomain>
Diffstat (limited to 'man')
-rw-r--r--man/bundle-add.ronn8
1 files changed, 7 insertions, 1 deletions
diff --git a/man/bundle-add.ronn b/man/bundle-add.ronn
index 1e2d732ec6..26cbe55647 100644
--- a/man/bundle-add.ronn
+++ b/man/bundle-add.ronn
@@ -3,7 +3,7 @@ bundle-add(1) -- Add gem to the Gemfile and run bundle install
## SYNOPSIS
-`bundle add` <GEM_NAME> [--group=GROUP] [--version=VERSION] [--source=SOURCE] [--skip-install] [--strict] [--optimistic]
+`bundle add` <GEM_NAME> [--group=GROUP] [--version=VERSION] [--source=SOURCE] [--git=GIT] [--branch=BRANCH] [--skip-install] [--strict] [--optimistic]
## DESCRIPTION
Adds the named gem to the Gemfile and run `bundle install`. `bundle install` can be avoided by using the flag `--skip-install`.
@@ -30,6 +30,12 @@ bundle add rails --group "development, test"
* `--source`, , `-s`:
Specify the source for the added gem.
+* `--git`:
+ Specify the git source for the added gem.
+
+* `--branch`:
+ Specify the git branch for the added gem.
+
* `--skip-install`:
Adds the gem to the Gemfile but does not install it.