You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by om...@apache.org on 2015/12/03 00:03:24 UTC

cordova-cli git commit: Removing the '--usegit' flag from `cordova platform`. Recommended method is to use `cordova platform add git_url#branch`

Repository: cordova-cli
Updated Branches:
  refs/heads/master 87c4d549a -> 34f61cdf0


Removing the '--usegit' flag from `cordova platform`.
Recommended method is to use `cordova platform add git_url#branch`


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/34f61cdf
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/34f61cdf
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/34f61cdf

Branch: refs/heads/master
Commit: 34f61cdf0afeed0687e3902900e217f811c7b53c
Parents: 87c4d54
Author: Omar Mefire <om...@gmail.com>
Authored: Wed Dec 2 14:20:56 2015 -0800
Committer: Omar Mefire <om...@gmail.com>
Committed: Wed Dec 2 14:20:56 2015 -0800

----------------------------------------------------------------------
 doc/platform.txt | 6 ------
 src/cli.js       | 2 --
 2 files changed, 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/34f61cdf/doc/platform.txt
----------------------------------------------------------------------
diff --git a/doc/platform.txt b/doc/platform.txt
index 2eaaf22..3be63e9 100644
--- a/doc/platform.txt
+++ b/doc/platform.txt
@@ -5,11 +5,6 @@ Synopsis
 Manage project platforms
 
     add <plat-spec> [...].............. add specified platforms
-        --usegit ...................... [WARNING: This flag has been deprecated.]
-                                        [Instead, please use: `cordova platform add git-url#custom-branch`.] 
-                                        [e.g: cordova platform add https://github.com/apache/cordova-android.git#2.4.0]
-                                        retrieve from git instead of npm registry
-
         --save ........................ save specified platforms into config.xml after installing them
 
         --link ........................ when <plat-spec> is a local path, links the platform
@@ -25,7 +20,6 @@ Manage project platforms
     update <plat-spec> ................ update the version of Cordova used for a specific platform;
                                         update to the latest <version> if no <version>, <path> or <url> is specified
 
-        --usegit ...................... retrieve platform from git instead of npm registry
         --save ........................ save the latest versions for specified platforms into config.xml
 
     check ............................. list platforms which can be updated by `cordova-cli platform update`

http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/34f61cdf/src/cli.js
----------------------------------------------------------------------
diff --git a/src/cli.js b/src/cli.js
index 9326023..05d17db 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -80,7 +80,6 @@ function cli(inputArgs) {
         , 'experimental' : Boolean
         , 'noregistry' : Boolean
         , 'shrinkwrap' : Boolean
-        , 'usegit' : Boolean
         , 'copy-from' : String
         , 'link-to' : path
         , 'searchpath' : String
@@ -336,7 +335,6 @@ function cli(inputArgs) {
         }
         var download_opts = { searchpath : args.searchpath
                             , noregistry : args.noregistry
-                            , usegit : args.usegit
                             , cli_variables : cli_vars
                             , browserify: args.browserify || false
                             , link: args.link || false


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org